blob: ff6746e21861f2e25d590e5865ca4260e73dfcb0 [file] [log] [blame]
Brian Silverman72890c22015-09-19 14:37:37 -04001#include <iostream>
2#include <Eigen/Dense>
3
4using namespace Eigen;
5using namespace std;
6
7int main()
8{
9 MatrixXd m = MatrixXd::Random(3,3);
10 m = (m + MatrixXd::Constant(3,3,1.2)) * 50;
11 cout << "m =" << endl << m << endl;
12 VectorXd v(3);
13 v << 1, 2, 3;
14 cout << "m * v =" << endl << m * v << endl;
15}