aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-10-29 14:22:02 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-10-29 14:22:02 +0100
commit541eac0828d8ebbacc424f7b526dfb7c24c5dc91 (patch)
treec810986f0875bf181c9fd0e26afeb190294fa5e9 /Eigen
parent7911df4b6e766ecdc57ccbc233e2b454288c5b51 (diff)
fix #65: MatrixBase::nonZero()
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/Core/MatrixBase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/MatrixBase.h b/Eigen/src/Core/MatrixBase.h
index 0e8b49f75..2691fdecd 100644
--- a/Eigen/src/Core/MatrixBase.h
+++ b/Eigen/src/Core/MatrixBase.h
@@ -177,7 +177,7 @@ template<typename Derived> class MatrixBase
inline int diagonalSize() const { return std::min(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