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
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
doc
examples
CustomizingEigen_Inheritance.cpp
Go to the documentation of this file.
1
#include <Eigen/Core>
2
#include <iostream>
3
4
class
MyVectorType
:
public
Eigen::VectorXd
5
{
6
public
:
7
MyVectorType
(
void
):
Eigen
::VectorXd() {}
8
9
// This constructor allows you to construct MyVectorType from Eigen expressions
10
template
<
typename
OtherDerived>
11
MyVectorType
(
const
Eigen::MatrixBase<OtherDerived>
&
other
)
12
:
Eigen
::VectorXd(
other
)
13
{ }
14
15
// This method allows you to assign Eigen expressions to MyVectorType
16
template
<
typename
OtherDerived>
17
MyVectorType
&
operator=
(
const
Eigen::MatrixBase <OtherDerived>
&
other
)
18
{
19
this->Eigen::VectorXd::operator=(
other
);
20
return
*
this
;
21
}
22
};
23
24
int
main
()
25
{
26
MyVectorType
v
= MyVectorType::Ones(4);
27
v
(2) += 10;
28
v
= 2 *
v
;
29
std::cout <<
v
.transpose() << std::endl;
30
}
Eigen
Namespace containing all symbols from the Eigen library.
Definition:
jet.h:637
main
int main()
Definition:
CustomizingEigen_Inheritance.cpp:24
MyVectorType::MyVectorType
MyVectorType(const Eigen::MatrixBase< OtherDerived > &other)
Definition:
CustomizingEigen_Inheritance.cpp:11
MyVectorType::MyVectorType
MyVectorType(void)
Definition:
CustomizingEigen_Inheritance.cpp:7
MyVectorType::operator=
MyVectorType & operator=(const Eigen::MatrixBase< OtherDerived > &other)
Definition:
CustomizingEigen_Inheritance.cpp:17
MyVectorType
Definition:
CustomizingEigen_Inheritance.cpp:4
v
Array< int, Dynamic, 1 > v
Definition:
Array_initializer_list_vector_cxx11.cpp:1
Eigen::MatrixBase
Base class for all dense matrices, vectors, and expressions.
Definition:
MatrixBase.h:48
pybind_wrapper_test_script.other
other
Definition:
pybind_wrapper_test_script.py:42
gtsam
Author(s):
autogenerated on Sat Dec 28 2024 04:02:00