00001 #include <iostream> 00002 #include <Eigen/Dense> 00003 00004 using namespace Eigen; 00005 using namespace std; 00006 00007 int main() 00008 { 00009 Matrix3f m = Matrix3f::Random(); 00010 m = (m + Matrix3f::Constant(1.2)) * 50; 00011 cout << "m =" << endl << m << endl; 00012 Vector3f v(1,2,3); 00013 00014 cout << "m * v =" << endl << m * v << endl; 00015 }