source: pacpussensors/trunk/Vislab/lib3dv/eigen/doc/examples/QuickStart_example2_fixed.cpp@ 136

Last change on this file since 136 was 136, checked in by ldecherf, 7 years ago

Doc

File size: 289 bytes
Line 
1#include <iostream>
2#include <Eigen/Dense>
3
4using namespace Eigen;
5using namespace std;
6
7int main()
8{
9 Matrix3d m = Matrix3d::Random();
10 m = (m + Matrix3d::Constant(1.2)) * 50;
11 cout << "m =" << endl << m << endl;
12 Vector3d v(1,2,3);
13
14 cout << "m * v =" << endl << m * v << endl;
15}
Note: See TracBrowser for help on using the repository browser.