mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
erm.. use EIGEN_ONLY_USED_FOR_DEBUG() as it already exists.
This commit is contained in:
parent
618640bf2b
commit
79e9e3f24c
@ -214,9 +214,7 @@ template<typename Derived> class DenseBase
|
|||||||
*/
|
*/
|
||||||
void resize(int size)
|
void resize(int size)
|
||||||
{
|
{
|
||||||
#ifdef EIGEN_NO_DEBUG
|
EIGEN_ONLY_USED_FOR_DEBUG(size);
|
||||||
EIGEN_ARG_UNUSED(size);
|
|
||||||
#endif
|
|
||||||
ei_assert(size == this->size()
|
ei_assert(size == this->size()
|
||||||
&& "DenseBase::resize() does not actually allow to resize.");
|
&& "DenseBase::resize() does not actually allow to resize.");
|
||||||
}
|
}
|
||||||
@ -226,10 +224,8 @@ template<typename Derived> class DenseBase
|
|||||||
*/
|
*/
|
||||||
void resize(int rows, int cols)
|
void resize(int rows, int cols)
|
||||||
{
|
{
|
||||||
#ifdef EIGEN_NO_DEBUG
|
EIGEN_ONLY_USED_FOR_DEBUG(rows);
|
||||||
EIGEN_ARG_UNUSED(rows);
|
EIGEN_ONLY_USED_FOR_DEBUG(cols);
|
||||||
EIGEN_ARG_UNUSED(cols);
|
|
||||||
#endif
|
|
||||||
ei_assert(rows == this->rows() && cols == this->cols()
|
ei_assert(rows == this->rows() && cols == this->cols()
|
||||||
&& "DenseBase::resize() does not actually allow to resize.");
|
&& "DenseBase::resize() does not actually allow to resize.");
|
||||||
}
|
}
|
||||||
|
@ -89,10 +89,8 @@ template<typename Derived> class TriangularBase : public EigenBase<Derived>
|
|||||||
|
|
||||||
void check_coordinates(int row, int col)
|
void check_coordinates(int row, int col)
|
||||||
{
|
{
|
||||||
#ifdef EIGEN_NO_DEBUG
|
EIGEN_ONLY_USED_FOR_DEBUG(row);
|
||||||
EIGEN_ARG_UNUSED(row);
|
EIGEN_ONLY_USED_FOR_DEBUG(col);
|
||||||
EIGEN_ARG_UNUSED(col);
|
|
||||||
#endif
|
|
||||||
ei_assert(col>=0 && col<cols() && row>=0 && row<rows());
|
ei_assert(col>=0 && col<cols() && row>=0 && row<rows());
|
||||||
ei_assert( (Mode==Upper && col>=row)
|
ei_assert( (Mode==Upper && col>=row)
|
||||||
|| (Mode==Lower && col<=row)
|
|| (Mode==Lower && col<=row)
|
||||||
|
@ -172,8 +172,6 @@
|
|||||||
#define EIGEN_UNUSED
|
#define EIGEN_UNUSED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define EIGEN_ARG_UNUSED(x) (void)x;
|
|
||||||
|
|
||||||
#if (defined __GNUC__)
|
#if (defined __GNUC__)
|
||||||
#define EIGEN_ASM_COMMENT(X) asm("#"X)
|
#define EIGEN_ASM_COMMENT(X) asm("#"X)
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user