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