Generalization of the matrix inversion lemma | Synapse