Ttclass/sum.m

From Spinach Documentation Wiki
Revision as of 20:44, 26 December 2015 by Admin (talk | contribs) (Created page with "Sum of elements of a tensor train representation of a matrix. Syntax: answer=sum(ttrain,dim) The sum is taken along the specified dimension (dim=1 or...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Sum of elements of a tensor train representation of a matrix. Syntax:

                       answer=sum(ttrain,dim)

The sum is taken along the specified dimension (dim=1 or dim=2).