From 67d79c675199cea1fa829f25de5e5bb5ab3cd7cc Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Fri, 25 Jun 2010 10:02:39 -0400 Subject: adapt to change: lu() now gives partial piv LU, here we want fullPivLu() --- doc/snippets/Tutorial_solve_multiple_rhs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/snippets/Tutorial_solve_multiple_rhs.cpp') 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 B; B << 3,1, 3,1, 4,1; Matrix 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; -- cgit v1.2.3