diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-04-14 15:18:08 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-04-14 15:18:08 +0200 |
commit | d402adc3d7f32115b51f46675ea39d3fa8868843 (patch) | |
tree | 67dc737206d5c72066cd66d70835861389eb2c37 /Eigen/src/SuperLUSupport | |
parent | ea7087ef319469cdb00f3c1c82aea8d2b1cc94ac (diff) |
Better use .data() than &coeffRef(0)
Diffstat (limited to 'Eigen/src/SuperLUSupport')
-rw-r--r-- | Eigen/src/SuperLUSupport/SuperLUSupport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 0ae3017cc..7e2efd452 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -986,7 +986,7 @@ void SuperILU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest &m_sluStat, &info, Scalar()); StatFree(&m_sluStat); - if(&x.coeffRef(0) != x_ref.data()) + if(x.derived().data() != x_ref.data()) x = x_ref; m_info = info==0 ? Success : NumericalIssue; |