einsum_test, a MATLAB code which demonstrates the einsum() function, which applies Einstein summation for various linear algebra operations, including vector inner and outer products, matrix-vector and matrix-matrix multiplication, matrix transpose, matrix diagonal, matrix trace, row and column sums, Hadamard matrix (elementwise) multiplication. This implementation is by Stephane Nechar.
The information on this web page is distributed under the MIT license.
einsum is available in a MATLAB version and an Octave version and a Python version and an R version.