QuickStart_example2_fixed.cpp
Go to the documentation of this file.
1 #include <iostream>
2 #include <Eigen/Dense>
3 
4 using Eigen::Matrix3d;
5 using Eigen::Vector3d;
6 
7 int main()
8 {
9  Matrix3d m = Matrix3d::Random();
10  m = (m + Matrix3d::Constant(1.2)) * 50;
11  std::cout << "m =" << std::endl << m << std::endl;
12  Vector3d v(1,2,3);
13 
14  std::cout << "m * v =" << std::endl << m * v << std::endl;
15 }
Matrix3f m
Array< int, Dynamic, 1 > v
Matrix< double, 3, 3 > Matrix3d
3×3 matrix of type double.
Definition: Matrix.h:502
Matrix< double, 3, 1 > Vector3d
3×1 vector of type double.
Definition: Matrix.h:502