4 ms·
Numpy has the einsum function, often very efficient as it avoids allocating memory for intermediate results. http://docs.scipy.org/doc/numpy/reference/generate
by SandB0x 12y ago
Numpy has the einsum function, often very efficient as it avoids allocating memory for intermediate results.
http://docs.scipy.org/doc/numpy/reference/generated/numpy.einsum.html http://docs.scipy.org/doc/numpy/reference/generated/numpy.ei...