QuickStart_example2_fixed.cpp File Reference

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 7 of file QuickStart_example2_fixed.cpp.

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