Ttclass/ranks.m

From Spinach Documentation Wiki
Revision as of 15:50, 5 April 2026 by Kuprov (talk | contribs) (Restore pre-bulk-edit wiki content)
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.