ttclass/size.m

From Spinach Documentation Wiki
Revision as of 18:04, 5 June 2026 by Kuprov (talk | contribs) (Repair ttclass function page template)
Jump to: navigation, search

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

Syntax

    [m,n]=size(tt,dim)

Arguments

    tt  - a tensor train representation of a matrix

    dim - (optional) integer specifying dimension

Outputs

    m,n - integers specifying the dimensions

Notes

for large tt 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

Version 2.1, authors: Dmitry Savostyanov, Ilya Kuprov