aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/TutorialLinearAlgebra.dox
diff options
context:
space:
mode:
Diffstat (limited to 'doc/TutorialLinearAlgebra.dox')
-rw-r--r--doc/TutorialLinearAlgebra.dox7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/TutorialLinearAlgebra.dox b/doc/TutorialLinearAlgebra.dox
index d7a70abc1..7dd786e98 100644
--- a/doc/TutorialLinearAlgebra.dox
+++ b/doc/TutorialLinearAlgebra.dox
@@ -158,8 +158,11 @@ Eigen::LUDecomposition<MatrixXf> lu(A);
cout << "The rank of A is" << lu.rank() << endl;
if(lu.isInvertible()) {
cout << "A is invertible, its inverse is:" << endl << lu.inverse() << endl;
-cout << "Here's a matrix whose columns form a basis of the kernel a.k.a. nullspace of A:"
- << endl << lu.kernel() << endl;
+}
+else {
+ cout << "Here's a matrix whose columns form a basis of the kernel a.k.a. nullspace of A:"
+ << endl << lu.kernel() << endl;
+}
\endcode
\sa LU_Module, LU::solve(), class LU