## Fix Python – Understanding NumPy’s einsum

How does np.einsum work?

Given arrays A and B, their matrix multiplication followed by transpose is computed using (A @ B).T, or equivalently, using:

np.einsum(“ij, jk -> ki”, A, B)

….

How does np.einsum work?

Given arrays A and B, their matrix multiplication followed by transpose is computed using (A @ B).T, or equivalently, using:

np.einsum(“ij, jk -> ki”, A, B)

….