mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Mask unused-parameter warnings, when building with NDEBUG
This commit is contained in:
parent
2eccbaf3f7
commit
da0a41b9ce
@ -146,6 +146,7 @@ class SolverBase : public EigenBase<Derived>
|
|||||||
|
|
||||||
template<bool Transpose_, typename Rhs>
|
template<bool Transpose_, typename Rhs>
|
||||||
void _check_solve_assertion(const Rhs& b) const {
|
void _check_solve_assertion(const Rhs& b) const {
|
||||||
|
EIGEN_ONLY_USED_FOR_DEBUG(b);
|
||||||
eigen_assert(derived().m_isInitialized && "Solver is not initialized.");
|
eigen_assert(derived().m_isInitialized && "Solver is not initialized.");
|
||||||
eigen_assert((Transpose_?derived().cols():derived().rows())==b.rows() && "SolverBase::solve(): invalid number of rows of the right hand side matrix b");
|
eigen_assert((Transpose_?derived().cols():derived().rows())==b.rows() && "SolverBase::solve(): invalid number of rows of the right hand side matrix b");
|
||||||
}
|
}
|
||||||
|
@ -383,6 +383,7 @@ template <typename _MatrixType> class CompleteOrthogonalDecomposition
|
|||||||
|
|
||||||
template<bool Transpose_, typename Rhs>
|
template<bool Transpose_, typename Rhs>
|
||||||
void _check_solve_assertion(const Rhs& b) const {
|
void _check_solve_assertion(const Rhs& b) const {
|
||||||
|
EIGEN_ONLY_USED_FOR_DEBUG(b);
|
||||||
eigen_assert(m_cpqr.m_isInitialized && "CompleteOrthogonalDecomposition is not initialized.");
|
eigen_assert(m_cpqr.m_isInitialized && "CompleteOrthogonalDecomposition is not initialized.");
|
||||||
eigen_assert((Transpose_?derived().cols():derived().rows())==b.rows() && "CompleteOrthogonalDecomposition::solve(): invalid number of rows of the right hand side matrix b");
|
eigen_assert((Transpose_?derived().cols():derived().rows())==b.rows() && "CompleteOrthogonalDecomposition::solve(): invalid number of rows of the right hand side matrix b");
|
||||||
}
|
}
|
||||||
|
@ -241,6 +241,7 @@ protected:
|
|||||||
|
|
||||||
template<bool Transpose_, typename Rhs>
|
template<bool Transpose_, typename Rhs>
|
||||||
void _check_solve_assertion(const Rhs& b) const {
|
void _check_solve_assertion(const Rhs& b) const {
|
||||||
|
EIGEN_ONLY_USED_FOR_DEBUG(b);
|
||||||
eigen_assert(m_isInitialized && "SVD is not initialized.");
|
eigen_assert(m_isInitialized && "SVD is not initialized.");
|
||||||
eigen_assert(computeU() && computeV() && "SVDBase::solve(): Both unitaries U and V are required to be computed (thin unitaries suffice).");
|
eigen_assert(computeU() && computeV() && "SVDBase::solve(): Both unitaries U and V are required to be computed (thin unitaries suffice).");
|
||||||
eigen_assert((Transpose_?cols():rows())==b.rows() && "SVDBase::solve(): invalid number of rows of the right hand side matrix b");
|
eigen_assert((Transpose_?cols():rows())==b.rows() && "SVDBase::solve(): invalid number of rows of the right hand side matrix b");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user