aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/class_FullPivLU.cpp
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-01-13 17:51:09 +0100
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-01-13 17:51:09 +0100
commitc0b2aa0acef071385f085ad2a011cc748a8d5541 (patch)
tree3017fb519ebf801758905b27acef70cd11400f0e /doc/snippets/class_FullPivLU.cpp
parenta33b2dfeb34344db72af430da0f0b770643f765d (diff)
Added some minor comments.
Adapted some of the doc/snippets.
Diffstat (limited to 'doc/snippets/class_FullPivLU.cpp')
-rw-r--r--doc/snippets/class_FullPivLU.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/snippets/class_FullPivLU.cpp b/doc/snippets/class_FullPivLU.cpp
index 855782d15..d44d8b5f0 100644
--- a/doc/snippets/class_FullPivLU.cpp
+++ b/doc/snippets/class_FullPivLU.cpp
@@ -7,10 +7,10 @@ cout << "Here is, up to permutations, its LU decomposition matrix:"
<< endl << lu.matrixLU() << endl;
cout << "Here is the L part:" << endl;
Matrix5x5 l = Matrix5x5::Identity();
-l.block<5,3>(0,0).part<StrictlyLowerTriangular>() = lu.matrixLU();
+l.block<5,3>(0,0).part<StrictlyLower>() = lu.matrixLU();
cout << l << endl;
cout << "Here is the U part:" << endl;
-Matrix5x3 u = lu.matrixLU().part<UpperTriangular>();
+Matrix5x3 u = lu.matrixLU().part<Upper>();
cout << u << endl;
cout << "Let us now reconstruct the original matrix m:" << endl;
cout << lu.permutationP().inverse() * l * u * lu.permutationQ().inverse() << endl;