Eigen  3.2.7
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CwiseBinaryOp< BinaryOp, Lhs, Rhs > Class Template Reference

Detailed Description

template<typename BinaryOp, typename Lhs, typename Rhs>
class Eigen::CwiseBinaryOp< BinaryOp, Lhs, Rhs >

Generic expression where a coefficient-wise binary operator is applied to two expressions.

Parameters
BinaryOptemplate functor implementing the operator
Lhsthe type of the left-hand side
Rhsthe type of the right-hand side

This class represents an expression where a coefficient-wise binary operator is applied to two expressions. It is the return type of binary operators, by which we mean only those binary operators where both the left-hand side and the right-hand side are Eigen expressions. For example, the return type of matrix1+matrix2 is a CwiseBinaryOp.

Most of the time, this is the only way that it is used, so you typically don't have to name CwiseBinaryOp types explicitly.

See Also
MatrixBase::binaryExpr(const MatrixBase<OtherDerived> &,const CustomBinaryOp &) const, class CwiseUnaryOp, class CwiseNullaryOp

Inherits no_assignment_operator, and CwiseBinaryOpImpl< BinaryOp, Lhs, Rhs, internal::promote_storage_type< internal::traits< Lhs >::StorageKind, internal::traits< Rhs >::StorageKind >::ret >.

Public Member Functions

const BinaryOp & functor () const
 
const _LhsNested & lhs () const
 
const _RhsNested & rhs () const
 

Member Function Documentation

const BinaryOp& functor ( ) const
inline
Returns
the functor representing the binary operation
const _LhsNested& lhs ( ) const
inline
Returns
the left hand side nested expression
const _RhsNested& rhs ( ) const
inline
Returns
the right hand side nested expression

The documentation for this class was generated from the following file: