Ttclass/ranks.m

From Spinach Documentation Wiki
Revision as of 12:31, 25 April 2026 by Kuprov (talk | contribs) (Normalise sequential blank lines)
Jump to: navigation, search

Returns the bond dimensions of a tensor train. Syntax:

    ttranks=ranks(ttrain)

The output is (ncores+1) by (ntrains) array. The first and the last elements for each train are 1.

See also

ttclass.m, ttclass/sizes.m, ttclass/shrink.m, Tensor train functions