From 5331fa3033fb615f6123d552ad6fa4a782b7d72f Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 24 Jan 2011 07:41:47 -0500 Subject: fix compilation of LU class example --- doc/snippets/class_FullPivLU.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/snippets/class_FullPivLU.cpp') 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() = lu.matrixLU(); +l.block<5,3>(0,0).triangularView() = lu.matrixLU(); cout << l << endl; cout << "Here is the U part:" << endl; -Matrix5x3 u = lu.matrixLU().part(); +Matrix5x3 u = lu.matrixLU().triangularView(); cout << u << endl; cout << "Let us now reconstruct the original matrix m:" << endl; cout << lu.permutationP().inverse() * l * u * lu.permutationQ().inverse() << endl; -- cgit v1.2.3