From aabca5a44f445b6c7fac234794ecf830af5bccd7 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 6 Apr 2009 13:35:48 +0000 Subject: [PATCH] stupid typo --- Eigen/src/Core/MatrixBase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/MatrixBase.h b/Eigen/src/Core/MatrixBase.h index fad1e305d1..a4e4e15d7e 100644 --- a/Eigen/src/Core/MatrixBase.h +++ b/Eigen/src/Core/MatrixBase.h @@ -172,7 +172,7 @@ template 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