22 return this->rows() == this->cols();
31 return this->squaredNorm();
34#define minmax_item(op) \
35 Scalar m = (*this)(0,0); \
36 for(Index i = 0 ; i < this->rows() ; i++) \
37 for(Index j = 0 ; j < this->cols() ; j++) \
39 if constexpr(std::is_same_v<Scalar,codac2::Interval>) \
40 m = codac2::op(m,(*this)(i,j)); \
42 m = std::op(m,(*this)(i,j)); \
70 return this->array().isNaN().any();
bool is_squared() const
Checks if the matrix is square.
Definition codac2_MatrixBase_addons_Base.h:20
Scalar max_coeff() const
Returns the maximum coefficient in the matrix.
Definition codac2_MatrixBase_addons_Base.h:59
auto squared_norm() const
Returns the squared norm of the matrix.
Definition codac2_MatrixBase_addons_Base.h:29
Scalar min_coeff() const
Returns the minimum coefficient in the matrix.
Definition codac2_MatrixBase_addons_Base.h:50
bool is_nan() const
Checks if any coefficient in the matrix is NaN.
Definition codac2_MatrixBase_addons_Base.h:68