aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-04-06 13:35:48 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-04-06 13:35:48 +0000
commitaabca5a44f445b6c7fac234794ecf830af5bccd7 (patch)
treed329f10a25f88af8c8e70245715c05cf5d8e26c6 /Eigen
parent502bf4a81dfd13630702e253fc265849d0e00ae6 (diff)
stupid typo
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 fad1e305d..a4e4e15d7 100644
--- a/Eigen/src/Core/MatrixBase.h
+++ b/Eigen/src/Core/MatrixBase.h
@@ -172,7 +172,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 derived().nonZeros(); }
/** \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