Eigen 3.4.90
doc
snippets
tut_matrix_assignment_resizing.cpp
Go to the documentation of this file.
1
MatrixXf
a
(2,2);
2
std::cout <<
"a is of size "
<<
a
.rows() <<
"x"
<<
a
.cols() << std::endl;
3
MatrixXf
b
(3,3);
4
a
=
b
;
5
std::cout <<
"a is now of size "
<<
a
.rows() <<
"x"
<<
a
.cols() << std::endl;
b
Array< int, 3, 1 > b
Definition:
Array_variadic_ctor_cxx11.cpp:2
Eigen::MatrixXf
Matrix< float, Dynamic, Dynamic > MatrixXf
Dynamic×Dynamic matrix of type float.
Definition:
Matrix.h:501
a
MatrixXf a(2, 2)