diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-06-25 10:02:39 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-06-25 10:02:39 -0400 |
commit | 67d79c675199cea1fa829f25de5e5bb5ab3cd7cc (patch) | |
tree | 4d6a1dd9822acad7a31d63f66dc749897c6be090 /doc/snippets/Tutorial_solve_multiple_rhs.cpp | |
parent | eb4095d41a3aba4cb843d25088dc6900f9abf2c5 (diff) |
adapt to change: lu() now gives partial piv LU, here we want fullPivLu()
Diffstat (limited to 'doc/snippets/Tutorial_solve_multiple_rhs.cpp')
-rw-r--r-- | doc/snippets/Tutorial_solve_multiple_rhs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/snippets/Tutorial_solve_multiple_rhs.cpp b/doc/snippets/Tutorial_solve_multiple_rhs.cpp index 72dab9075..5411a44ab 100644 --- a/doc/snippets/Tutorial_solve_multiple_rhs.cpp +++ b/doc/snippets/Tutorial_solve_multiple_rhs.cpp @@ -3,7 +3,7 @@ A << 1,2,3, 4,5,6, 7,8,10; Matrix<float,3,2> B; B << 3,1, 3,1, 4,1; Matrix<float,3,2> X; -X = A.lu().solve(B); +X = A.fullPivLu().solve(B); cout << "The solution with right-hand side (3,3,4) is:" << endl; cout << X.col(0) << endl; cout << "The solution with right-hand side (1,1,1) is:" << endl; |