TutorialLinAlgInverseDeterminant.cpp
Go to the documentation of this file.
00001 #include <iostream>
00002 #include <Eigen/Dense>
00003 
00004 using namespace std;
00005 using namespace Eigen;
00006 
00007 int main()
00008 {
00009    Matrix3f A;
00010    A << 1, 2, 1,
00011         2, 1, 0,
00012         -1, 1, 2;
00013    cout << "Here is the matrix A:\n" << A << endl;
00014    cout << "The determinant of A is " << A.determinant() << endl;
00015    cout << "The inverse of A is:\n" << A.inverse() << endl;
00016 }


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:33:27