Difference between revisions of "Ttclass/size.m"
m (Repair ttclass function page template) |
m (Rename Arguments section heading to Parameters) |
||
| Line 7: | Line 7: | ||
[m,n]=size(tt,dim) | [m,n]=size(tt,dim) | ||
| − | == | + | ==Parameters== |
tt - a tensor train representation of a matrix | tt - a tensor train representation of a matrix | ||
Revision as of 18:53, 5 June 2026
Returns the size of the matrix represented by a tensor train. The output mimics Matlab's size function.
Syntax
[m,n]=size(tt,dim)
Parameters
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