1 Matrix2d md = Matrix2d::Identity() * 0.45; 2 Matrix2f mf = Matrix2f::Identity(); 3 cout << md + mf.cast<double>() << endl; 4