Could allocate heap space for matrix representation inside class body and free the memory at the end of multiplication / addition operations. Class can accept a parameter to specify whether or not to free so the matrices representing the layers in the neuralnet can stay intact, even after say "feedforward" has been called.
Could allocate heap space for matrix representation inside class body and free the memory at the end of multiplication / addition operations. Class can accept a parameter to specify whether or not to free so the matrices representing the layers in the neuralnet can stay intact, even after say "feedforward" has been called.