Difference between revisions of "Ttclass/numel.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Restore pre-bulk-edit wiki content)
(Normalise sequential blank lines)
Line 19: Line 19:
 
==See also==
 
==See also==
 
[[ttclass.m]], [[ttclass/nnz.m]]
 
[[ttclass.m]], [[ttclass/nnz.m]]
−
 
  
 
''Version 2.1, authors: [[Ilya Kuprov]], [[Dmitry Savostyanov]]''
 
''Version 2.1, authors: [[Ilya Kuprov]], [[Dmitry Savostyanov]]''

Revision as of 11:31, 25 April 2026

Number of elements in the matrix represented by a tensor train.

Syntax

    n=numel(tt)

Arguments

    tt  - tensor train object

Outputs

    n  - an integer

Notes

For large spin systems, the result may be too large to fit into the 64-bit integer.

See also

ttclass.m, ttclass/nnz.m

Version 2.1, authors: Ilya Kuprov, Dmitry Savostyanov