eigen/doc/examples/QuickStart_example2_fixed.cpp
Jitse Niesen 0c078ca80a Documentation fixes. Thanks to Rodney Sparapani for reporting these.
(transplanted from 5eefca637e1c964426e8515b2493fbed816a789a
)
2012-08-17 14:49:18 +01:00

16 lines
289 B
C++

#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;
}