From 62acd679037400b55f81aac709edea75dc5ae876 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 5 Dec 2016 15:11:57 +0100 Subject: remove temporary in SparseLU::solve --- Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Eigen/src/SparseLU') diff --git a/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h b/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h index f0856db85..2aa746f84 100644 --- a/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +++ b/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h @@ -276,7 +276,7 @@ void MappedSuperNodalMatrix::solveInPlace( MatrixBase&X) co // Matrix-vector product new (&A) Map, 0, OuterStride<> > ( &(Lval[luptr+nsupc]), nrow, nsupc, OuterStride<>(lda) ); - work.block(0, 0, nrow, nrhs) = A * U; + work.block(0, 0, nrow, nrhs).noalias() = A * U; //Begin Scatter for (Index j = 0; j < nrhs; j++) -- cgit v1.2.3