Eigen 3.4.90
doc
snippets
MatrixBase_cast.cpp
Go to the documentation of this file.
1
Matrix2d
md
= Matrix2d::Identity() * 0.45;
2
Matrix2f
mf
= Matrix2f::Identity();
3
cout <<
md
+
mf
.cast<
double
>() << endl;
mf
Matrix2f mf
Definition:
MatrixBase_cast.cpp:2
md
Matrix2d md
Definition:
MatrixBase_cast.cpp:1
Eigen::Matrix2f
Matrix< float, 2, 2 > Matrix2f
2×2 matrix of type float.
Definition:
Matrix.h:501
Eigen::Matrix2d
Matrix< double, 2, 2 > Matrix2d
2×2 matrix of type double.
Definition:
Matrix.h:502