Wolfram Language
Paclet Repository
Community-contributed installable additions to the Wolfram Language
Primary Navigation
Categories
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
Create a Paclet
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`
T
e
n
s
o
r
T
r
a
i
n
P
l
u
s
T
e
n
s
o
r
T
r
a
i
n
P
l
u
s
[
t
1
,
t
2
,
…
]
g
i
v
e
s
t
h
e
s
u
m
o
f
t
h
e
t
e
n
s
o
r
t
r
a
i
n
s
t
i
D
e
t
a
i
l
s
a
n
d
O
p
t
i
o
n
s
▪
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
T
e
n
s
o
r
T
r
a
i
n
C
o
m
p
r
e
s
s
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
+
…
i
s
e
q
u
i
v
a
l
e
n
t
t
o
T
e
n
s
o
r
T
r
a
i
n
P
l
u
s
[
t
1
,
t
2
,
…
]
.
Examples
(
1
)
Basic Examples
(
1
)
Sum two tensor trains. Notice their max bond dimensions add up:
I
n
[
1
]
:
=
a
=
T
e
n
s
o
r
T
r
a
i
n
D
e
c
o
m
p
o
s
i
t
i
o
n
[
R
a
n
d
o
m
R
e
a
l
[
1
,
{
1
,
2
,
3
}
]
]
b
=
T
e
n
s
o
r
T
r
a
i
n
D
e
c
o
m
p
o
s
i
t
i
o
n
[
R
a
n
d
o
m
R
e
a
l
[
1
,
{
1
,
2
,
3
}
]
]
T
e
n
s
o
r
T
r
a
i
n
P
l
u
s
[
a
,
b
]
O
u
t
[
1
]
=
T
e
n
s
o
r
T
r
a
i
n
C
o
r
e
s
:
3
M
a
x
χ
:
2
T
e
n
s
o
r
d
i
m
s
:
{
1
,
2
,
3
}
O
u
t
[
1
]
=
T
e
n
s
o
r
T
r
a
i
n
C
o
r
e
s
:
3
M
a
x
χ
:
2
T
e
n
s
o
r
d
i
m
s
:
{
1
,
2
,
3
}
O
u
t
[
1
]
=
T
e
n
s
o
r
T
r
a
i
n
C
o
r
e
s
:
3
M
a
x
χ
:
4
T
e
n
s
o
r
d
i
m
s
:
{
1
,
2
,
3
}
R
e
l
a
t
e
d
G
u
i
d
e
s
▪
T
e
n
s
o
r
T
r
a
i
n
T
o
o
l
s
O
v
e
r
v
i
e
w
"
"