diff options
author | janos <janos.meny@googlemail.com> | 2020-10-02 14:36:51 +0200 |
---|---|---|
committer | janos <janos.meny@googlemail.com> | 2020-10-02 14:36:51 +0200 |
commit | f7b185a8b13ed2612bce306c08cb5a371e8ba347 (patch) | |
tree | d5dab950a86cab8aac5d3dc791a88e3711cb1ee2 /Eigen/src/Core/products/TriangularSolverMatrix.h | |
parent | 9078f47cd68188ff6bb9bec950e00dfd6ee364d5 (diff) |
dont use =* might not return a Scalar
Diffstat (limited to 'Eigen/src/Core/products/TriangularSolverMatrix.h')
-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) |