aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/MatrixBase_cast.cpp
blob: 016880b40c4e5e0c15ddef2f3c1e58990c60b3fd (plain)
1
2
3
Matrix2d md = Matrix2d::Identity() * 0.45;
Matrix2f mf = Matrix2f::Identity();
cout << md + mf.cast<double>() << endl;