TutorialLinAlgInverseDeterminant.cpp
Go to the documentation of this file.
1 #include <iostream>
2 #include <Eigen/Dense>
3 
4 int main()
5 {
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 }
MatrixXcf A
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:182