mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 11:19:02 +08:00
Fix bug #535: unused variable warnings
This commit is contained in:
parent
6c8cf15c06
commit
925a5b7d07
@ -542,8 +542,7 @@ template<typename Derived>
|
|||||||
bool LDLT<MatrixType,_UpLo>::solveInPlace(MatrixBase<Derived> &bAndX) const
|
bool LDLT<MatrixType,_UpLo>::solveInPlace(MatrixBase<Derived> &bAndX) const
|
||||||
{
|
{
|
||||||
eigen_assert(m_isInitialized && "LDLT is not initialized.");
|
eigen_assert(m_isInitialized && "LDLT is not initialized.");
|
||||||
const Index size = m_matrix.rows();
|
eigen_assert(m_matrix.rows() == bAndX.rows());
|
||||||
eigen_assert(size == bAndX.rows());
|
|
||||||
|
|
||||||
bAndX = this->solve(bAndX);
|
bAndX = this->solve(bAndX);
|
||||||
|
|
||||||
|
@ -209,6 +209,7 @@ class SparseSelfAdjointTimeDenseProduct
|
|||||||
|
|
||||||
template<typename Dest> void scaleAndAddTo(Dest& dest, const Scalar& alpha) const
|
template<typename Dest> void scaleAndAddTo(Dest& dest, const Scalar& alpha) const
|
||||||
{
|
{
|
||||||
|
EIGEN_ONLY_USED_FOR_DEBUG(alpha);
|
||||||
// TODO use alpha
|
// TODO use alpha
|
||||||
eigen_assert(alpha==Scalar(1) && "alpha != 1 is not implemented yet, sorry");
|
eigen_assert(alpha==Scalar(1) && "alpha != 1 is not implemented yet, sorry");
|
||||||
typedef typename internal::remove_all<Lhs>::type _Lhs;
|
typedef typename internal::remove_all<Lhs>::type _Lhs;
|
||||||
|
@ -202,7 +202,7 @@ class SparseVector
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline SparseVector(const SparseVector& other)
|
inline SparseVector(const SparseVector& other)
|
||||||
: m_size(0)
|
: SparseBase(other), m_size(0)
|
||||||
{
|
{
|
||||||
*this = other.derived();
|
*this = other.derived();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user