Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
gtsam
3rdparty
Eigen
doc
examples
Tutorial_ArrayClass_addition.cpp
Go to the documentation of this file.
1
#include <Eigen/Dense>
2
#include <iostream>
3
4
using namespace
Eigen
;
5
using namespace
std
;
6
7
int
main
()
8
{
9
ArrayXXf
a
(3,3);
10
ArrayXXf
b
(3,3);
11
a << 1,2,3,
12
4,5,6,
13
7,8,9;
14
b << 1,2,3,
15
1,2,3,
16
1,2,3;
17
18
// Adding two arrays
19
cout <<
"a + b = "
<< endl << a + b << endl << endl;
20
21
// Subtracting a scalar from an array
22
cout <<
"a - 2 = "
<< endl << a - 2 << endl;
23
}
b
Scalar * b
Definition:
benchVecAdd.cpp:17
Eigen
Namespace containing all symbols from the Eigen library.
Definition:
jet.h:637
std
Definition:
Half.h:150
a
Array33i a
Definition:
Cwise_product.cpp:1
main
int main()
Definition:
Tutorial_ArrayClass_addition.cpp:7
gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:19