diff options
author | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2011-04-05 18:30:51 +0100 |
---|---|---|
committer | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2011-04-05 18:30:51 +0100 |
commit | eae5a6bb094243f80495955a3d1c551160c6f818 (patch) | |
tree | 12b7d0717008ba7554714a4e34680a596bcf37d9 /Eigen/src/Core/CwiseNullaryOp.h | |
parent | 11ea81858ae113ae11ee79dbb3a338172507a1bc (diff) |
Decouple Cwise*Op evaluators from expression objects
Diffstat (limited to 'Eigen/src/Core/CwiseNullaryOp.h')
-rw-r--r-- | Eigen/src/Core/CwiseNullaryOp.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<Index, RowsAtCompileTime> m_rows; const internal::variable_if_dynamic<Index, ColsAtCompileTime> m_cols; |