Forward pass matrix operation to compute output vector
Backward pass matrix operation to compute weights gradient matrix
Backward pass matrix operation to compute input gradient vector