fix bug #184 (warning)

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

View File

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