规范模块目录和第三方依赖结构
This commit is contained in:
11
third_party/eigen3/doc/snippets/MatrixBase_computeInverseWithCheck.cpp
vendored
Normal file
11
third_party/eigen3/doc/snippets/MatrixBase_computeInverseWithCheck.cpp
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
Matrix3d m = Matrix3d::Random();
|
||||
cout << "Here is the matrix m:" << endl << m << endl;
|
||||
Matrix3d inverse;
|
||||
bool invertible;
|
||||
m.computeInverseWithCheck(inverse,invertible);
|
||||
if(invertible) {
|
||||
cout << "It is invertible, and its inverse is:" << endl << inverse << endl;
|
||||
}
|
||||
else {
|
||||
cout << "It is not invertible." << endl;
|
||||
}
|
||||
Reference in New Issue
Block a user