Difference between revisions of "Ttclass/rand.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise remaining wiki page to current Spinach source header)
(Restore pre-bulk-edit wiki content)
Line 1: Line 1:
 
{{DISPLAYTITLE:ttclass/rand.m}} __NOTOC__
 
{{DISPLAYTITLE:ttclass/rand.m}} __NOTOC__
  
−
Generates a tensor train representation of a matrix with random
+
Generates tensor train matrix with random entries, same physical index
−
tensor train cores, same physical index topology at the tensor
+
topology at the tensor train supplied, and specified TT-ranks. Syntax:
−
train supplied, and user-specified bond ranks.
 
  
−
==Syntax==
 
  
−
tt=rand(tt,ttrank)
+
    tt=rand(tt,ttrank)
  
 
==Arguments==
 
==Arguments==
  
−
tt    - a tensor train object
+
tt    - a tensor train object
  
 
     ttrank - bond rank, a positive integer
 
     ttrank - bond rank, a positive integer
Line 17: Line 15:
 
==Outputs==
 
==Outputs==
  
−
tt    - a tensor train object
+
tt    - a tensor train object
  
 
  d.savostyanov@soton.ac.uk
 
  d.savostyanov@soton.ac.uk
 
  ilya.kuprov@weizmann.ac.il
 
  ilya.kuprov@weizmann.ac.il

Revision as of 15:50, 5 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