aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples/QuickStart_example2_fixed.cpp
blob: d9117527391a7e167511513f864f9658432a764d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
#include <Eigen/Dense>

using namespace Eigen;
using namespace std;

int main()
{
  Matrix3d m = Matrix3d::Random();
  m = (m + Matrix3d::Constant(1.2)) * 50;
  cout << "m =" << endl << m << endl;
  Vector3d v(1,2,3);
  
  cout << "m * v =" << endl << m * v << endl;
}