tut_arithmetic_scalar_mul_div.cpp File Reference

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 4 of file tut_arithmetic_scalar_mul_div.cpp.

5 {
7  a << 1, 2,
8  3, 4;
9  Eigen::Vector3d v(1,2,3);
10  std::cout << "a * 2.5 =\n" << a * 2.5 << std::endl;
11  std::cout << "0.1 * v =\n" << 0.1 * v << std::endl;
12  std::cout << "Doing v *= 2;" << std::endl;
13  v *= 2;
14  std::cout << "Now v =\n" << v << std::endl;
15 }
Array< int, Dynamic, 1 > v
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:182