aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/CwiseBinaryOp.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-01-22 10:15:41 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-01-22 10:15:41 +0100
commitd40c110053c13692ffc0df25fca292d98996d496 (patch)
treebcd5aeb0665e47168bb5cb53e5e935da1614bb7d /Eigen/src/Core/CwiseBinaryOp.h
parentf1a025185a25e53eb1c4817141c0523cf48f70bc (diff)
lot of cleaning:
- clean the *_PUBLIC_INTERFACE_* - update Diagonal, ReturnByValue, ForceAlignedAccess, UnaryView, etc. to support array - many other small stuff
Diffstat (limited to 'Eigen/src/Core/CwiseBinaryOp.h')
-rw-r--r--Eigen/src/Core/CwiseBinaryOp.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Eigen/src/Core/CwiseBinaryOp.h b/Eigen/src/Core/CwiseBinaryOp.h
index 990c553dd..9ed005dce 100644
--- a/Eigen/src/Core/CwiseBinaryOp.h
+++ b/Eigen/src/Core/CwiseBinaryOp.h
@@ -124,8 +124,11 @@ class CwiseBinaryOp : ei_no_assignment_operator,
EIGEN_STRONG_INLINE int rows() const { return m_lhs.rows(); }
EIGEN_STRONG_INLINE int cols() const { return m_lhs.cols(); }
+ /** \returns the left hand side nested expression */
const _LhsNested& lhs() const { return m_lhs; }
+ /** \returns the right hand side nested expression */
const _RhsNested& rhs() const { return m_rhs; }
+ /** \returns the functor representing the binary operation */
const BinaryOp& functor() const { return m_functor; }
protected:
@@ -138,11 +141,11 @@ template<typename BinaryOp, typename Lhs, typename Rhs>
class CwiseBinaryOpImpl<BinaryOp, Lhs, Rhs, Dense>
: public Lhs::template MakeBase< CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::Type
{
+ typedef CwiseBinaryOp<BinaryOp, Lhs, Rhs> Derived;
public:
- typedef CwiseBinaryOp<BinaryOp, Lhs, Rhs> Derived;
typedef typename Lhs::template MakeBase< CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::Type Base;
- _EIGEN_DENSE_PUBLIC_INTERFACE( Derived )
+ EIGEN_DENSE_PUBLIC_INTERFACE( Derived )
EIGEN_STRONG_INLINE const Scalar coeff(int row, int col) const
{