From eae5a6bb094243f80495955a3d1c551160c6f818 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Tue, 5 Apr 2011 18:30:51 +0100 Subject: Decouple Cwise*Op evaluators from expression objects --- Eigen/src/Core/CwiseNullaryOp.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Eigen/src/Core/CwiseNullaryOp.h') diff --git a/Eigen/src/Core/CwiseNullaryOp.h b/Eigen/src/Core/CwiseNullaryOp.h index a2f504985..2e840b851 100644 --- a/Eigen/src/Core/CwiseNullaryOp.h +++ b/Eigen/src/Core/CwiseNullaryOp.h @@ -101,6 +101,9 @@ class CwiseNullaryOp : internal::no_assignment_operator, return m_functor.packetOp(index); } + /** \returns the functor representing the nullary operation */ + const NullaryOp& functor() const { return m_functor; } + protected: const internal::variable_if_dynamic m_rows; const internal::variable_if_dynamic m_cols; -- cgit v1.2.3