diff options
Diffstat (limited to 'Eigen/src/Core/CwiseUnaryOp.h')
-rw-r--r-- | Eigen/src/Core/CwiseUnaryOp.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Eigen/src/Core/CwiseUnaryOp.h b/Eigen/src/Core/CwiseUnaryOp.h index a36a629db..0095a1572 100644 --- a/Eigen/src/Core/CwiseUnaryOp.h +++ b/Eigen/src/Core/CwiseUnaryOp.h @@ -92,6 +92,12 @@ class CwiseUnaryOp : ei_no_assignment_operator, return m_functor.packetOp(m_matrix.template packet<LoadMode>(index)); } + /** \internal used for introspection */ + const UnaryOp& _functor() const { return m_functor; } + + /** \internal used for introspection */ + const typename MatrixType::Nested& _expression() const { return m_matrix; } + protected: const typename MatrixType::Nested m_matrix; const UnaryOp m_functor; |