Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
gtsam
3rdparty
Eigen
doc
examples
Tutorial_ArrayClass_cwise_other.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
ArrayXf
a
= ArrayXf::Random(5);
10
a *= 2;
11
cout <<
"a ="
<< endl
12
<< a << endl;
13
cout <<
"a.abs() ="
<< endl
14
<< a.abs() << endl;
15
cout <<
"a.abs().sqrt() ="
<< endl
16
<< a.abs().sqrt() << endl;
17
cout <<
"a.min(a.abs().sqrt()) ="
<< endl
18
<< a.min(a.abs().sqrt()) << endl;
19
}
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_cwise_other.cpp:7
gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:19