tut_arithmetic_scalar_mul_div.cpp
Go to the documentation of this file.
1 #include <iostream>
2 #include <Eigen/Dense>
3 
4 using namespace Eigen;
5 
6 int main()
7 {
8  Matrix2d a;
9  a << 1, 2,
10  3, 4;
11  Vector3d v(1,2,3);
12  std::cout << "a * 2.5 =\n" << a * 2.5 << std::endl;
13  std::cout << "0.1 * v =\n" << 0.1 * v << std::endl;
14  std::cout << "Doing v *= 2;" << std::endl;
15  v *= 2;
16  std::cout << "Now v =\n" << v << std::endl;
17 }
ArrayXcf v
Definition: Cwise_arg.cpp:1
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
Array33i a


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:19