diff --git a/doc/snippets/LU_computeImage.cpp b/doc/snippets/LU_computeImage.cpp deleted file mode 100644 index 5c812cc4c..000000000 --- a/doc/snippets/LU_computeImage.cpp +++ /dev/null @@ -1,13 +0,0 @@ -MatrixXd m(3,3); -m << 1,1,0, - 1,3,2, - 0,1,1; -cout << "Here is the matrix m:" << endl << m << endl; -LU lu(m); -// allocate the matrix img with the correct size to avoid reallocation -MatrixXd img(m.rows(), lu.rank()); -lu.computeImage(&img); -cout << "Notice that the middle column is the sum of the two others, so the " - << "columns are linearly dependent." << endl; -cout << "Here is a matrix whose columns have the same span but are linearly independent:" - << endl << img << endl; diff --git a/doc/snippets/LU_computeKernel.cpp b/doc/snippets/LU_computeKernel.cpp deleted file mode 100644 index b08f7f1ea..000000000 --- a/doc/snippets/LU_computeKernel.cpp +++ /dev/null @@ -1,10 +0,0 @@ -MatrixXf m = MatrixXf::Random(3,5); -cout << "Here is the matrix m:" << endl << m << endl; -LU lu(m); -// allocate the matrix ker with the correct size to avoid reallocation -MatrixXf ker(m.rows(), lu.dimensionOfKernel()); -lu.computeKernel(&ker); -cout << "Here is a matrix whose columns form a basis of the kernel of m:" - << endl << ker << endl; -cout << "By definition of the kernel, m*ker is zero:" - << endl << m*ker << endl; diff --git a/doc/snippets/LU_image.cpp b/doc/snippets/LU_image.cpp index 0d1088a2f..d3092e8b6 100644 --- a/doc/snippets/LU_image.cpp +++ b/doc/snippets/LU_image.cpp @@ -6,4 +6,4 @@ cout << "Here is the matrix m:" << endl << m << endl; cout << "Notice that the middle column is the sum of the two others, so the " << "columns are linearly dependent." << endl; cout << "Here is a matrix whose columns have the same span but are linearly independent:" - << endl << m.lu().image() << endl; + << endl << m.lu().image(m) << endl;