mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-30 15:54:13 +08:00
Better use .data() than &coeffRef(0)
This commit is contained in:
parent
ea7087ef31
commit
d402adc3d7
@ -986,7 +986,7 @@ void SuperILU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest
|
|||||||
&m_sluStat, &info, Scalar());
|
&m_sluStat, &info, Scalar());
|
||||||
StatFree(&m_sluStat);
|
StatFree(&m_sluStat);
|
||||||
|
|
||||||
if(&x.coeffRef(0) != x_ref.data())
|
if(x.derived().data() != x_ref.data())
|
||||||
x = x_ref;
|
x = x_ref;
|
||||||
|
|
||||||
m_info = info==0 ? Success : NumericalIssue;
|
m_info = info==0 ? Success : NumericalIssue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user