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_BlockOperations_print_block.cpp
Go to the documentation of this file.
1
#include <
Eigen/Dense
>
2
#include <iostream>
3
4
using namespace
std
;
5
6
int
main
()
7
{
8
Eigen::MatrixXf
m
(4,4);
9
m
<< 1, 2, 3, 4,
10
5, 6, 7, 8,
11
9,10,11,12,
12
13,14,15,16;
13
cout <<
"Block in the middle"
<< endl;
14
cout <<
m
.block<2,2>(1,1) << endl << endl;
15
for
(
int
i
= 1;
i
<= 3; ++
i
)
16
{
17
cout <<
"Block of size "
<<
i
<<
"x"
<<
i
<< endl;
18
cout <<
m
.block(0,0,
i
,
i
) << endl << endl;
19
}
20
}
m
Matrix3f m
Definition:
AngleAxis_mimic_euler.cpp:1
i
int i
Definition:
BiCGSTAB_step_by_step.cpp:9
Dense
main
int main()
Definition:
Tutorial_BlockOperations_print_block.cpp:6
Eigen::Matrix
The matrix class, also used for vectors and row-vectors.
Definition:
Matrix.h:182
std
Definition:
BFloat16.h:222
Code