Difference between revisions of "Ttclass/pack.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Sync syntax/arguments/outputs with current Spinach source)
(Restore pre-bulk-edit wiki content)
Line 1: Line 1:
−
{{DISPLAYTITLE:ttclass/pack.m}} __NOTOC__
+
{{DISPLAYTITLE:ttclass/pack.m}}
−
 
 
 
Packs up the additions buffer.
 
Packs up the additions buffer.
  
 
==Syntax==
 
==Syntax==
  
−
ttout=pack(tt)
+
    ttout=pack(tt)
 +
 
 +
==Description==
 +
This subroutine packs all trains from the addition buffer into a single tensor train, but does not perform the recompression. Normally you should not call it directly, use [[ttclass/shrink.m]] instead.
  
 
==Arguments==
 
==Arguments==
  
−
tt  -  tensor train object with unprocessed additions
+
    tt  -  tensor train object with unprocessed additions
  
 
==Outputs==
 
==Outputs==
  
−
ttout - tensor train with additions buffer absorbed
+
    ttout - tensor train with additions buffer absorbed  
−
            into the cores of the tensor, but not re-
+
            into the cores of the tensor, but not recompressed
−
            compressed
 
−
 
 
−
d.savostyanov@soton.ac.uk
 
  
 
==Notes==
 
==Notes==
−
 
 
Additions are expensive in the TT format, and so the tensor train module delays them as much as it can, and only processes them in batches. This function is a part of the processing path.
 
Additions are expensive in the TT format, and so the tensor train module delays them as much as it can, and only processes them in batches. This function is a part of the processing path.
  
 
==See also==
 
==See also==
−
 
 
[[ttclass.m]], [[ttclass/shrink.m]]
 
[[ttclass.m]], [[ttclass/shrink.m]]
  
  
 
''Version 2.1, authors: [[Dmitry Savostyanov]]''
 
''Version 2.1, authors: [[Dmitry Savostyanov]]''
−
 
−
==Description==
 
−
 
−
This subroutine packs all trains from the addition buffer into a single tensor train, but does not perform the recompression. Normally you should not call it directly, use [[ttclass/shrink.m]] instead.
 

Revision as of 14:50, 5 April 2026

Packs up the additions buffer.

Syntax

    ttout=pack(tt)

Description

This subroutine packs all trains from the addition buffer into a single tensor train, but does not perform the recompression. Normally you should not call it directly, use ttclass/shrink.m instead.

Arguments

    tt  -  tensor train object with unprocessed additions

Outputs

    ttout - tensor train with additions buffer absorbed 
            into the cores of the tensor, but not recompressed

Notes

Additions are expensive in the TT format, and so the tensor train module delays them as much as it can, and only processes them in batches. This function is a part of the processing path.

See also

ttclass.m, ttclass/shrink.m


Version 2.1, authors: Dmitry Savostyanov