MatrixBase_computeInverseAndDetWithCheck.cpp
Go to the documentation of this file.
00001 Matrix3d m = Matrix3d::Random();
00002 cout << "Here is the matrix m:" << endl << m << endl;
00003 Matrix3d inverse;
00004 bool invertible;
00005 double determinant;
00006 m.computeInverseAndDetWithCheck(inverse,determinant,invertible);
00007 cout << "Its determinant is " << determinant << endl;
00008 if(invertible) {
00009   cout << "It is invertible, and its inverse is:" << endl << inverse << endl;
00010 }
00011 else {
00012   cout << "It is not invertible." << endl;
00013 }


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