einsum_package: Einstein Summation

einsum_packageR Documentation

Einstein Summation

Description

Einstein summation is a concise mathematical notation that implicitly sums over repeated indices of n-dimensional arrays. Many ordinary matrix operations (e.g. transpose, matrix multiplication, scalar product, 'diag()', trace etc.) can be written using Einstein notation. The notation is particularly convenient for expressing operations on arrays with more than two dimensions because the respective operators ('tensor products') might not have a standardized name.


const-ae/einsum documentation built on Sept. 3, 2023, 3:50 a.m.