ttclass/amensum.m

From Spinach Documentation Wiki
Revision as of 19:42, 6 June 2026 by Kuprov (talk | contribs) (Update function See also links and function index membership)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Sums buffered tensor trains in a single tensor train using AMEn algorithm.

Syntax

    y=amensum(x,tol,opts)

Parameters

    x                    - ttclass with buffered rank-one tensors

    tol                  - relative tolerance parameter, e.g. 1e-10

    The opts field is optional:

    opts.max_swp         - maximum number of iterations

    opts.init_guess_rank - rank of the initial guess

    opts.enrichment_rank - rank of the enrichment

    opts.verb            - verbosity switch

Outputs

    y - ttclass with a single tensor train, such
        that |x-y|<tol*|x| in Frobenius norm

Notes

Summation is a messy operation in TT format. Spinach buffers tensor train sums and processes them in batches using this function.

See also

ttclass.m, ttclass/plus.m, ttclass/pack.m, ttclass/amensolve.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/rand.m, ttclass/ranks.m, ttclass/rdivide.m, ttclass/revert.m, ttclass/shrink.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, Sergey Dolgov