Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
gtsam
3rdparty
Eigen
doc
examples
tut_matrix_coefficient_accessors.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
MatrixXd
m
(2,2);
9
m
(0,0) = 3;
10
m
(1,0) = 2.5;
11
m
(0,1) = -1;
12
m
(1,1) =
m
(1,0) +
m
(0,1);
13
std::cout <<
"Here is the matrix m:\n"
<< m << std::endl;
14
VectorXd
v
(2);
15
v
(0) = 4;
16
v
(1) =
v
(0) - 1;
17
std::cout <<
"Here is the vector v:\n"
<< v << std::endl;
18
}
m
Matrix3f m
Definition:
AngleAxis_mimic_euler.cpp:1
main
int main()
Definition:
tut_matrix_coefficient_accessors.cpp:6
v
ArrayXcf v
Definition:
Cwise_arg.cpp:1
Eigen
Namespace containing all symbols from the Eigen library.
Definition:
jet.h:637
gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:19