mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-23 23:03:15 +08:00
fix bug #184 (warning)
This commit is contained in:
parent
8e0a42350d
commit
a1d7e9051e
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user