Difference between revisions of "Ttclass/rand.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Add missing Version/authors metadata and remove raw author emails)
m (Repair ttclass function page template)
Line 1: Line 1:
 
{{DISPLAYTITLE:ttclass/rand.m}} __NOTOC__
 
{{DISPLAYTITLE:ttclass/rand.m}} __NOTOC__
 +
Generates a tensor train representation of a matrix with random
 +
tensor train cores, same physical index topology as the tensor
 +
train supplied, and user-specified bond ranks.
  
−
Generates tensor train matrix with random entries, same physical index
+
==Syntax==
−
topology at the tensor train supplied, and specified TT-ranks. Syntax:
 
  
 
     tt=rand(tt,ttrank)
 
     tt=rand(tt,ttrank)
Line 8: Line 10:
 
==Arguments==
 
==Arguments==
  
−
tt    - a tensor train object
+
    tt    - a tensor train object
−
 
+
−
    ttrank - bond rank, a positive integer
+
    ttrank - bond rank, a positive integer
  
 
==Outputs==
 
==Outputs==
  
−
tt     - a tensor train object
+
    tt - a tensor train object
−
 
 
  
 
==See also==
 
==See also==

Revision as of 18:04, 5 June 2026

Generates a tensor train representation of a matrix with random tensor train cores, same physical index topology as the tensor train supplied, and user-specified bond ranks.

Syntax

    tt=rand(tt,ttrank)

Arguments

    tt     - a tensor train object

    ttrank - bond rank, a positive integer

Outputs

    tt - a tensor train object

See also

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

Version 2.1, authors: Dmitry Savostyanov, Ilya Kuprov