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
snippets
Matrix_resize_int_int.cpp
Go to the documentation of this file.
1
MatrixXd
m
(2,3);
2
m
<< 1,2,3,4,5,6;
3
cout <<
"here's the 2x3 matrix m:"
<< endl <<
m
<< endl;
4
cout <<
"let's resize m to 3x2. This is a conservative resizing because 2*3==3*2."
<< endl;
5
m
.resize(3,2);
6
cout <<
"here's the 3x2 matrix m:"
<< endl <<
m
<< endl;
7
cout <<
"now let's resize m to size 2x2. This is NOT a conservative resizing, so it becomes uninitialized:"
<< endl;
8
m
.resize(2,2);
9
cout <<
m
<< endl;
m
MatrixXd m(2, 3)
Eigen::MatrixXd
Matrix< double, Dynamic, Dynamic > MatrixXd
DynamicĂ—Dynamic matrix of type double.
Definition:
Matrix.h:502
Code