mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
many small fixes and documentation improvements,
this should be alpha5.
This commit is contained in:
7
doc/snippets/MatrixBase_inverse.cpp
Normal file
7
doc/snippets/MatrixBase_inverse.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
Matrix2d m = Matrix2d::random();
|
||||
cout << "Here is the matrix m:" << endl << m << endl;
|
||||
Matrix2d::InverseType m_inv = m.inverse();
|
||||
if(m_inv.exists())
|
||||
cout << "m is invertible, and its inverse is:" << endl << m_inv << endl;
|
||||
else
|
||||
cout << "m is not invertible." << endl;
|
||||
Reference in New Issue
Block a user