wow, restore Gael's changeset 5455d6fbe8d889f100b1526d046da16b375fc451

that I had accidentally undone in my changeset c64ca6870ea3f76b5ea5182bba1e62fd5a632f89
.
This commit is contained in:
Benoit Jacob 2009-11-25 08:31:25 -05:00
parent d048d7e712
commit 522022ebfc

View File

@ -159,7 +159,7 @@ template<typename Derived> class MatrixBase
inline int size() const { return rows() * cols(); }
/** \returns the number of nonzero coefficients which is in practice the number
* 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.
* In other words, this function returns
* \code rows()==1 || cols()==1 \endcode