aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/SelfCwiseBinaryOp.h
diff options
context:
space:
mode:
authorGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2011-04-28 16:57:35 +0100
committerGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2011-04-28 16:57:35 +0100
commit06fb7cf4706794a39750354cf0af6742633e980f (patch)
tree0b16bddf4e156a1259901c80f72cddebaf19beb9 /Eigen/src/Core/SelfCwiseBinaryOp.h
parent3b60d2dbc4688fa3216a0df56ecca699a9ff9ea2 (diff)
Implement compound assignments using evaluator of SelfCwiseBinaryOp.
Diffstat (limited to 'Eigen/src/Core/SelfCwiseBinaryOp.h')
-rw-r--r--Eigen/src/Core/SelfCwiseBinaryOp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Eigen/src/Core/SelfCwiseBinaryOp.h b/Eigen/src/Core/SelfCwiseBinaryOp.h
index 4e9ca8874..d7cb261c4 100644
--- a/Eigen/src/Core/SelfCwiseBinaryOp.h
+++ b/Eigen/src/Core/SelfCwiseBinaryOp.h
@@ -163,6 +163,16 @@ template<typename BinaryOp, typename Lhs, typename Rhs> class SelfCwiseBinaryOp
return Base::operator=(rhs);
}
+ Lhs& expression() const
+ {
+ return m_matrix;
+ }
+
+ const BinaryOp& functor() const
+ {
+ return m_functor;
+ }
+
protected:
Lhs& m_matrix;
const BinaryOp& m_functor;