diff options
Diffstat (limited to 'doc/snippets/MatrixBase_quickInverse.cpp')
-rw-r--r-- | doc/snippets/MatrixBase_quickInverse.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/snippets/MatrixBase_quickInverse.cpp b/doc/snippets/MatrixBase_quickInverse.cpp new file mode 100644 index 000000000..cf0575f8e --- /dev/null +++ b/doc/snippets/MatrixBase_quickInverse.cpp @@ -0,0 +1,5 @@ +Matrix4d m = Matrix4d::zero(); +m.part<Eigen::Upper>().setOnes(); +cout << "Here is the matrix m:" << endl << m << endl; +cout << "We know for sure that it is invertible." << endl; +cout << "Here is its inverse:" << m.quickInverse() << endl; |