Ttclass/ranks.m

From Spinach Documentation Wiki
Revision as of 12:16, 25 April 2026 by Kuprov (talk | contribs) (Add See also section to function-description page)
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