diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-01-24 07:41:47 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-01-24 07:41:47 -0500 |
commit | 5331fa3033fb615f6123d552ad6fa4a782b7d72f (patch) | |
tree | ee96e2847ac74b01829b23fe19083d6ef57dd854 /doc/snippets/class_FullPivLU.cpp | |
parent | 1dabd133cc7b547ded5750e3fd1a6c6701ba47b5 (diff) |
fix compilation of LU class example
Diffstat (limited to 'doc/snippets/class_FullPivLU.cpp')
-rw-r--r-- | doc/snippets/class_FullPivLU.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/snippets/class_FullPivLU.cpp b/doc/snippets/class_FullPivLU.cpp index d44d8b5f0..fce7fac09 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<StrictlyLower>() = lu.matrixLU(); +l.block<5,3>(0,0).triangularView<StrictlyLower>() = lu.matrixLU(); cout << l << endl; cout << "Here is the U part:" << endl; -Matrix5x3 u = lu.matrixLU().part<Upper>(); +Matrix5x3 u = lu.matrixLU().triangularView<Upper>(); cout << u << endl; cout << "Let us now reconstruct the original matrix m:" << endl; cout << lu.permutationP().inverse() * l * u * lu.permutationQ().inverse() << endl; |