Difference between revisions of "Ttclass/amensum.m"
(Update function See also links and function index membership) |
|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{DISPLAYTITLE:ttclass/amensum.m}} | + | {{DISPLAYTITLE:ttclass/amensum.m}} __NOTOC__ |
| − | + | Sums buffered tensor trains in a single tensor train using | |
| + | AMEn algorithm. | ||
==Syntax== | ==Syntax== | ||
| Line 6: | Line 7: | ||
y=amensum(x,tol,opts) | 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== | ==Outputs== | ||
| − | + | y - ttclass with a single tensor train, such | |
| − | + | that |x-y|<tol*|x| in Frobenius norm | |
==Notes== | ==Notes== | ||
| Line 34: | Line 32: | ||
==See also== | ==See also== | ||
| − | [[ttclass.m]], [[ttclass/plus.m]], [[ttclass/pack.m]] | + | [[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]]'' | ''Version 2.1, authors: [[Dmitry Savostyanov]], [[Sergey Dolgov]]'' | ||
Latest revision as of 18:42, 6 June 2026
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