diff options
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/products/TriangularSolverMatrix.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Eigen/src/Core/products/TriangularSolverMatrix.h b/Eigen/src/Core/products/TriangularSolverMatrix.h index 0dcf3bb52..6d879ba00 100644 --- a/Eigen/src/Core/products/TriangularSolverMatrix.h +++ b/Eigen/src/Core/products/TriangularSolverMatrix.h @@ -136,7 +136,9 @@ EIGEN_DONT_INLINE void triangular_solve_matrix<Scalar,Index,OnTheLeft,Mode,Conju } else { - Scalar b = (other(i,j) *= a); + Scalar& otherij = other(i,j); + otherij *= a; + Scalar b = otherij; typename OtherMapper::LinearMapper r = other.getLinearMapper(s,j); typename TriMapper::LinearMapper l = tri.getLinearMapper(s,i); for (Index i3=0;i3<rs;++i3) |