Difference between revisions of "Ttclass/rand.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Add See also section to function-description page)
(Normalise sequential blank lines)
Line 3: Line 3:
 
Generates tensor train matrix with random entries, same physical index
 
Generates tensor train matrix with random entries, same physical index
 
topology at the tensor train supplied, and specified TT-ranks. Syntax:
 
topology at the tensor train supplied, and specified TT-ranks. Syntax:
−
 
  
 
     tt=rand(tt,ttrank)
 
     tt=rand(tt,ttrank)

Revision as of 12:31, 25 April 2026


Generates tensor train matrix with random entries, same physical index topology at the tensor train supplied, and specified TT-ranks. Syntax:

    tt=rand(tt,ttrank)

Arguments

tt - a tensor train object

   ttrank - bond rank, a positive integer

Outputs

tt - a tensor train object

d.savostyanov@soton.ac.uk
ilya.kuprov@weizmann.ac.il

See also

ttclass.m, ttclass/unit_like.m, ttclass/size.m, Tensor train functions