Ttclass/size.m

From Spinach Documentation Wiki
Revision as of 16:08, 5 June 2026 by Kuprov (talk | contribs) (Spot-update function page against current Spinach source)
Jump to: navigation, search

Returns the size of the matrix represented by a tensor train. The output mimics Matlab's size function. Syntax:

    varargout=size(tt,dim)

If dim is omitted, the function returns the two-element row vector [m n]. If dim is 1 or 2, it returns the corresponding dimension.

For large tensor train matrices, m and n may be too large to fit into the maximum integer permitted by Matlab.

See also

ttclass.m, ttclass/sizes.m, ttclass/nnz.m, Tensor train functions