Difference between revisions of "Ttclass/size.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise sequential blank lines)
(Update function See also links and function index membership)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{DISPLAYTITLE:ttclass/size.m}} __NOTOC__
 
Returns the size of the matrix represented by a tensor train.
 
Returns the size of the matrix represented by a tensor train.
Syntax:
+
The output mimics Matlab's size function.
  
    varargout=size(tt,dim)
+
==Syntax==
  
For large spin systems M and N may be too large to fit into  
+
    [m,n]=size(tt,dim)
the maximum integer permitted by Matlab.
+
 
 +
==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==
 
==See also==
[[ttclass.m]], [[ttclass/sizes.m]], [[ttclass/nnz.m]], [[Tensor_train_module#Tensor_train_functions|Tensor train functions]]
+
[[ttclass.m]], [[ttclass/sizes.m]], [[ttclass/nnz.m]], [[ttclass/amensolve.m]], [[ttclass/amensum.m]], [[ttclass/clearcoeff.m]], [[ttclass/conj.m]], [[ttclass/ctranspose.m]], [[ttclass/diag.m]], [[ttclass/dot.m]], [[ttclass/full.m]], [[ttclass/hdot.m]], [[ttclass/ismatrix.m]], [[ttclass/isnumeric.m]], [[ttclass/isreal.m]], [[ttclass/kron.m]], [[ttclass/mean.m]], [[ttclass/minus.m]], [[ttclass/mldivide.m]], [[ttclass/mrdivide.m]], [[ttclass/mtimes.m]], [[ttclass/norm.m]], [[ttclass/numel.m]], [[ttclass/pack.m]], [[ttclass/plus.m]], [[ttclass/rand.m]], [[ttclass/ranks.m]], [[ttclass/rdivide.m]], [[ttclass/revert.m]], [[ttclass/shrink.m]], [[ttclass/subsref.m]], [[ttclass/sum.m]], [[ttclass/trace.m]], [[ttclass/transpose.m]], [[ttclass/truncate.m]], [[ttclass/ttort.m]], [[ttclass/unit_like.m]], [[ttclass/vec.m]], [[Tensor_train_module]]
 +
 
 +
''Version 2.1, authors: [[Dmitry Savostyanov]], [[Ilya Kuprov]]''

Latest revision as of 19:42, 6 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, ttclass/amensolve.m, ttclass/amensum.m, ttclass/clearcoeff.m, ttclass/conj.m, ttclass/ctranspose.m, ttclass/diag.m, ttclass/dot.m, ttclass/full.m, ttclass/hdot.m, ttclass/ismatrix.m, ttclass/isnumeric.m, ttclass/isreal.m, ttclass/kron.m, ttclass/mean.m, ttclass/minus.m, ttclass/mldivide.m, ttclass/mrdivide.m, ttclass/mtimes.m, ttclass/norm.m, ttclass/numel.m, ttclass/pack.m, ttclass/plus.m, ttclass/rand.m, ttclass/ranks.m, ttclass/rdivide.m, ttclass/revert.m, ttclass/shrink.m, ttclass/subsref.m, ttclass/sum.m, ttclass/trace.m, ttclass/transpose.m, ttclass/truncate.m, ttclass/ttort.m, ttclass/unit_like.m, ttclass/vec.m, Tensor_train_module

Version 2.1, authors: Dmitry Savostyanov, Ilya Kuprov