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
H
a
d
a
m
a
r
d
T
e
n
s
o
r
T
r
a
i
n
H
a
d
a
m
a
r
d
[
t
1
,
t
2
,
…
]
g
i
v
e
s
t
h
e
e
l
e
m
e
n
t
w
i
s
e
(
H
a
d
a
m
a
r
d
)
p
r
o
d
u
c
t
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
▪
The product is exact: cores are combined by Kronecker products of the bond spaces, so the bond dimensions of the result are the products of the operands' bond dimensions.
▪
Bond growth is therefore multiplicative. Compress with
T
e
n
s
o
r
T
r
a
i
n
C
o
m
p
r
e
s
s
when chaining products to reduce the overall bond dimension.
▪
t
1
⊙
t
2
…
is equivalent to
T
e
n
s
o
r
T
r
a
i
n
H
a
d
a
m
a
r
d
[
t
1
,
t
2
,
…
]
.
Examples
(
1
)
Basic Examples
(
1
)
Notice the bond dimensions of the result are the products of the operands' bond dimensions:
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
,
{
2
,
3
,
4
}
]
]
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
,
{
2
,
3
,
4
}
]
]
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
:
{
2
,
3
,
4
}
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
:
{
2
,
3
,
4
}
I
n
[
2
]
:
=
T
e
n
s
o
r
T
r
a
i
n
H
a
d
a
m
a
r
d
[
a
,
b
]
O
u
t
[
2
]
=
T
e
n
s
o
r
T
r
a
i
n
C
o
r
e
s
:
3
M
a
x
χ
:
1
6
T
e
n
s
o
r
d
i
m
s
:
{
2
,
3
,
4
}
Use
T
e
n
s
o
r
T
r
a
i
n
C
o
m
p
r
e
s
s
after each operation to reduce the overall bond dimension:
I
n
[
3
]
:
=
%
/
/
T
e
n
s
o
r
T
r
a
i
n
C
o
m
p
r
e
s
s
O
u
t
[
3
]
=
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
:
{
2
,
3
,
4
}
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
"
"