ttclass/numel.m

From Spinach Documentation Wiki
Revision as of 14:42, 3 January 2018 by Kuprov (talk | contribs) (Created page with "{{DISPLAYTITLE:ttclass/numel.m}} Number of elements in the matrix represented by a tensor train. ==Syntax== n=numel(tt) ==Arguments== tt - tensor train object...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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