From 4e9c227bd52732a75b35f4c01da4e033c2f1e49a Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 17 Dec 2009 11:43:42 +0100 Subject: [PATCH] partial LU optimization: noalias --- Eigen/src/LU/PartialPivLU.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/LU/PartialPivLU.h b/Eigen/src/LU/PartialPivLU.h index 6c9097db0..37cffd7a1 100644 --- a/Eigen/src/LU/PartialPivLU.h +++ b/Eigen/src/LU/PartialPivLU.h @@ -355,7 +355,7 @@ struct ei_partial_lu_impl // A12 = A11^-1 A12 A11.template triangularView().solveInPlace(A12); - A22 -= A21 * A12; + A22.noalias() -= A21 * A12; } } return true;