Structured trainable networks for matrix algebra | Synapse