Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
c
d
e
f
g
i
k
l
m
n
p
q
r
s
t
u
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Classes
Class List
Class Hierarchy
Class Members
All
!
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
!
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
f
k
l
m
n
o
p
r
s
t
v
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
:
a
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
u
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
z
Enumerations
Enumerator
b
c
e
f
g
i
l
m
n
o
p
r
s
t
u
v
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
gtsam
3rdparty
Eigen
unsupported
test
cxx11_tensor_empty.cpp
Go to the documentation of this file.
1
// This file is part of Eigen, a lightweight C++ template library
2
// for linear algebra.
3
//
4
// Copyright (C) 2015 Benoit Steiner <benoit.steiner.goog@gmail.com>
5
//
6
// This Source Code Form is subject to the terms of the Mozilla
7
// Public License v. 2.0. If a copy of the MPL was not distributed
8
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
10
#include "
main.h
"
11
12
#include <Eigen/CXX11/Tensor>
13
14
15
static
void
test_empty_tensor
()
16
{
17
Tensor<float, 2>
source;
18
Tensor<float, 2>
tgt1 = source;
19
Tensor<float, 2>
tgt2(source);
20
Tensor<float, 2>
tgt3;
21
tgt3 = tgt1;
22
tgt3 = tgt2;
23
}
24
25
static
void
test_empty_fixed_size_tensor
()
26
{
27
TensorFixedSize<float, Sizes<0>
> source;
28
TensorFixedSize<float, Sizes<0>
> tgt1 = source;
29
TensorFixedSize<float, Sizes<0>
> tgt2(source);
30
TensorFixedSize<float, Sizes<0>
> tgt3;
31
tgt3 = tgt1;
32
tgt3 = tgt2;
33
}
34
35
36
EIGEN_DECLARE_TEST
(cxx11_tensor_empty)
37
{
38
CALL_SUBTEST
(
test_empty_tensor
());
39
CALL_SUBTEST
(
test_empty_fixed_size_tensor
());
40
}
Eigen::Tensor
The tensor class.
Definition:
Tensor.h:63
test_empty_tensor
static void test_empty_tensor()
Definition:
cxx11_tensor_empty.cpp:15
test_empty_fixed_size_tensor
static void test_empty_fixed_size_tensor()
Definition:
cxx11_tensor_empty.cpp:25
main.h
EIGEN_DECLARE_TEST
EIGEN_DECLARE_TEST(cxx11_tensor_empty)
Definition:
cxx11_tensor_empty.cpp:36
Eigen::TensorFixedSize
The fixed sized version of the tensor class.
Definition:
TensorFixedSize.h:27
CALL_SUBTEST
#define CALL_SUBTEST(FUNC)
Definition:
main.h:399
gtsam
Author(s):
autogenerated on Wed Mar 19 2025 03:01:32