Eigen 3.4.90
Main Page
Related Pages
Modules
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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
_
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
Enumerator
a
b
c
d
e
f
h
i
k
m
n
o
p
q
r
s
t
u
v
Related Functions
o
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
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
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
g
h
i
j
l
m
n
o
p
q
r
s
t
v
w
x
y
Typedefs
a
b
c
d
e
f
i
l
m
n
r
s
t
u
Macros
_
a
b
c
d
e
f
g
h
l
m
p
s
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
doc
examples
Tutorial_simple_example_fixed_size.cpp
Go to the documentation of this file.
1
#include <
Eigen/Core
>
2
#include <iostream>
3
4
int
main
()
5
{
6
Eigen::Matrix3f
m3;
7
m3 << 1, 2, 3, 4, 5, 6, 7, 8, 9;
8
Eigen::Matrix4f
m4 =
Eigen::Matrix4f::Identity
();
9
Eigen::Vector4i
v4(1, 2, 3, 4);
10
11
std::cout <<
"m3\n"
<< m3 <<
"\nm4:\n"
12
<< m4 <<
"\nv4:\n"
<< v4 << std::endl;
13
}
Core
main
int main()
Definition:
Tutorial_simple_example_fixed_size.cpp:4
Eigen::MatrixBase::Identity
static const IdentityReturnType Identity()
Definition:
CwiseNullaryOp.h:828
Eigen::Matrix
The matrix class, also used for vectors and row-vectors.
Definition:
Matrix.h:182
Code