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++)