ttclass/size.m
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
Version 2.1, authors: Dmitry Savostyanov, Ilya Kuprov