mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
fix #65: MatrixBase::nonZero()
This commit is contained in:
parent
7911df4b6e
commit
541eac0828
@ -177,7 +177,7 @@ template<typename Derived> class MatrixBase
|
|||||||
inline int diagonalSize() const { return std::min(rows(),cols()); }
|
inline int diagonalSize() const { return std::min(rows(),cols()); }
|
||||||
/** \returns the number of nonzero coefficients which is in practice the number
|
/** \returns the number of nonzero coefficients which is in practice the number
|
||||||
* of stored coefficients. */
|
* of stored coefficients. */
|
||||||
inline int nonZeros() const { return derived().nonZeros(); }
|
inline int nonZeros() const { return size(); }
|
||||||
/** \returns true if either the number of rows or the number of columns is equal to 1.
|
/** \returns true if either the number of rows or the number of columns is equal to 1.
|
||||||
* In other words, this function returns
|
* In other words, this function returns
|
||||||
* \code rows()==1 || cols()==1 \endcode
|
* \code rows()==1 || cols()==1 \endcode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user