Difference between revisions of "Ttclass/size.m"
m (Spot-update function page against current Spinach source) |
(Add NOTOC to Spinach function page header) |
||
| Line 1: | Line 1: | ||
| + | {{DISPLAYTITLE:ttclass/size.m}} __NOTOC__ | ||
Returns the size of the matrix represented by a tensor train. The output mimics Matlab's size function. | Returns the size of the matrix represented by a tensor train. The output mimics Matlab's size function. | ||
Syntax: | Syntax: | ||
Revision as of 16:59, 5 June 2026
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