Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

TensorTrainTools

Guides

  • TensorTrainTools Overview

Symbols

  • RandomTensorTrain
  • TensorTrainCompress
  • TensorTrainContract
  • TensorTrainDecomposition
  • TensorTrainHadamard
  • TensorTrainInnerProduct
  • TensorTrain
  • TensorTrainNorm
  • TensorTrainOrthogonalize
  • TensorTrainPlus
  • TensorTrainScale
RubenRanval`TensorTrainTools`
TensorTrainPlus
​
TensorTrainPlus
[
t
1
,
t
2
,…]
gives the sum of the tensor trains
t
i
​
Details and Options
▪
All arguments must represent tensors of the same dimensions.
▪
The sum is exact: cores are combined block-diagonally, so the bond dimensions of the result are the sums of the operands' bond dimensions. Use
TensorTrainCompress
to reduce the ranks of the result.
▪
Arguments can be tensor trains or raw core lists. Core lists are converted automatically into tensor trains.
▪
t
1
+
t
2
+…
is equivalent to
TensorTrainPlus
[
t
1
,
t
2,
…]
.
Examples  
(1)
Basic Examples  
(1)
Sum two tensor trains. Notice their max bond dimensions add up:
In[1]:=
a=TensorTrainDecomposition[RandomReal[1,{1,2,3}]]​​b=TensorTrainDecomposition[RandomReal[1,{1,2,3}]]​​TensorTrainPlus[a,b]
Out[1]=
TensorTrain
Cores: 3
Max χ: 2
Tensor dims: {1,2,3}

Out[1]=
TensorTrain
Cores: 3
Max χ: 2
Tensor dims: {1,2,3}

Out[1]=
TensorTrain
Cores: 3
Max χ: 4
Tensor dims: {1,2,3}

RelatedGuides
▪
TensorTrainTools Overview
""

© 2026 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com