diff options
author | Gael Guennebaud <g.gael@free.fr> | 2009-07-07 21:30:20 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2009-07-07 21:30:20 +0200 |
commit | 13b2dafb5033a9de83c3dbd038b06c45845aeac1 (patch) | |
tree | d8d3d2905eb5a207635dbdbfe6111da943fdb3cc /Eigen/src/Core/CwiseUnaryOp.h | |
parent | 5ed6ce90d3d626e86127961f0845570223ac9c0b (diff) |
conjugate expressions are now properly caught by Product
=> significant speedup in expr. like a.adjoint() * b,
for complex scalar type (~ x3)
Diffstat (limited to 'Eigen/src/Core/CwiseUnaryOp.h')
-rw-r--r-- | Eigen/src/Core/CwiseUnaryOp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Eigen/src/Core/CwiseUnaryOp.h b/Eigen/src/Core/CwiseUnaryOp.h index 0095a1572..3ffb24833 100644 --- a/Eigen/src/Core/CwiseUnaryOp.h +++ b/Eigen/src/Core/CwiseUnaryOp.h @@ -96,7 +96,8 @@ class CwiseUnaryOp : ei_no_assignment_operator, const UnaryOp& _functor() const { return m_functor; } /** \internal used for introspection */ - const typename MatrixType::Nested& _expression() const { return m_matrix; } + const typename ei_cleantype<typename MatrixType::Nested>::type& + _expression() const { return m_matrix; } protected: const typename MatrixType::Nested m_matrix; |