ttclass/pack.m

From Spinach Documentation Wiki
Jump to: navigation, search

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

Syntax

    ttout=pack(tt)

Parameters

    tt - tensor train object with unprocessed additions

Outputs

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

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, ttclass/amensolve.m, ttclass/amensum.m, ttclass/clearcoeff.m, ttclass/conj.m, ttclass/ctranspose.m, ttclass/diag.m, ttclass/dot.m, ttclass/full.m, ttclass/hdot.m, ttclass/ismatrix.m, ttclass/isnumeric.m, ttclass/isreal.m, ttclass/kron.m, ttclass/mean.m, ttclass/minus.m, ttclass/mldivide.m, ttclass/mrdivide.m, ttclass/mtimes.m, ttclass/nnz.m, ttclass/norm.m, ttclass/numel.m, ttclass/plus.m, ttclass/rand.m, ttclass/ranks.m, ttclass/rdivide.m, ttclass/revert.m, ttclass/size.m, ttclass/sizes.m, ttclass/subsref.m, ttclass/sum.m, ttclass/trace.m, ttclass/transpose.m, ttclass/truncate.m, ttclass/ttort.m, ttclass/unit_like.m, ttclass/vec.m, Tensor_train_module

Version 2.1, authors: Dmitry Savostyanov