Eigen 3.4.90
doc
examples
TutorialLinAlgInverseDeterminant.cpp
Go to the documentation of this file.
1
#include <iostream>
2
#include <
Eigen/Dense
>
3
4
int
main
()
5
{
6
Eigen::Matrix3f
A
;
7
A
<< 1, 2, 1,
8
2, 1, 0,
9
-1, 1, 2;
10
std::cout <<
"Here is the matrix A:\n"
<<
A
<< std::endl;
11
std::cout <<
"The determinant of A is "
<<
A
.determinant() << std::endl;
12
std::cout <<
"The inverse of A is:\n"
<<
A
.inverse() << std::endl;
13
}
A
MatrixXcf A
Definition:
ComplexEigenSolver_compute.cpp:1
Dense
main
int main()
Definition:
TutorialLinAlgInverseDeterminant.cpp:4
Eigen::Matrix
The matrix class, also used for vectors and row-vectors.
Definition:
Matrix.h:182