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