Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
gtsam
3rdparty
Eigen
doc
examples
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
}
v
ArrayXcf v
Definition:
Cwise_arg.cpp:1
main
int main()
Definition:
tut_arithmetic_scalar_mul_div.cpp:6
Eigen
Namespace containing all symbols from the Eigen library.
Definition:
jet.h:637
a
Array33i a
Definition:
Cwise_product.cpp:1
gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:19