eigen/doc/snippets/MatrixBase_cast.cpp
Benoit Jacob 3cd2a125b2 - rework the coefficients API
- make vectors use a separate loop unroller, so that copying a
row-vector into a col-vector is now possible
- add much more documentation
- misc improvements
2007-12-24 11:14:25 +00:00

4 lines
119 B
C++

Matrix2d md = Matrix2d::identity() * 0.45;
Matrix2f mf = Matrix2f::identity();
cout << md + mf.cast<double>() << endl;