2
0
mirror of https://gitlab.com/libeigen/eigen.git synced 2025-04-24 19:40:45 +08:00

fix bug (warning)

This commit is contained in:
Gael Guennebaud 2011-02-14 15:41:00 +01:00
parent 8e0a42350d
commit a1d7e9051e

@ -248,14 +248,14 @@ template<typename _MatrixType, typename Rhs>
void* numeric = const_cast<void*>(dec().numeric());
int errorCode = 0;
EIGEN_UNUSED int errorCode = 0;
for (int j=0; j<rhsCols; ++j)
{
errorCode = umfpack_solve(UMFPACK_A,
dec().matrixLU()._outerIndexPtr(), dec().matrixLU()._innerIndexPtr(), dec().matrixLU()._valuePtr(),
&dst.col(j).coeffRef(0), &rhs().const_cast_derived().col(j).coeffRef(0), numeric, 0, 0);
eigen_assert(!errorCode && "UmfPack could not solve the system.");
}
{
errorCode = umfpack_solve(UMFPACK_A,
dec().matrixLU()._outerIndexPtr(), dec().matrixLU()._innerIndexPtr(), dec().matrixLU()._valuePtr(),
&dst.col(j).coeffRef(0), &rhs().const_cast_derived().col(j).coeffRef(0), numeric, 0, 0);
eigen_assert(!errorCode && "UmfPack could not solve the system.");
}
}
};