TutorialLinAlgInverseDeterminant.cpp File Reference

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 4 of file TutorialLinAlgInverseDeterminant.cpp.

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