diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-10-19 17:22:04 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-10-19 17:22:04 -0400 |
commit | d1db1352f5632281a822fd0f1f59dd7d96b876a1 (patch) | |
tree | 6c881cdb4cd6bf0337fc62a31d1b08ab94f9c4df /doc | |
parent | 890bff977eeff9a5d461812a0048c89ea30fd30a (diff) |
update doc snippets
Diffstat (limited to 'doc')
-rw-r--r-- | doc/snippets/LU_computeImage.cpp | 13 | ||||
-rw-r--r-- | doc/snippets/LU_computeKernel.cpp | 10 | ||||
-rw-r--r-- | doc/snippets/LU_image.cpp | 2 |
3 files changed, 1 insertions, 24 deletions
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<Matrix3d> 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<MatrixXf> 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; |