Eigen  3.4.90 (git rev 9589cc4e7fd8e4538bedef80dd36c7738977a8be)
 
Loading...
Searching...
No Matches
Eigen::CwiseBinaryOp< BinaryOp, Lhs, Rhs > Class Template Reference

#include <Eigen/src/Core/CwiseBinaryOp.h>

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.

Template Parameters
BinaryOptemplate functor implementing the operator
LhsTypethe type of the left-hand side
RhsTypethe 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

Public Member Functions

const BinaryOp & functor () const
 
const LhsNested_ & lhs () const
 
const RhsNested_ & rhs () const
 

Member Function Documentation

◆ functor()

template<typename BinaryOp, typename Lhs, typename Rhs>
const BinaryOp & Eigen::CwiseBinaryOp< BinaryOp, Lhs, Rhs >::functor ( ) const
inline
Returns
the functor representing the binary operation

◆ lhs()

template<typename BinaryOp, typename Lhs, typename Rhs>
const LhsNested_ & Eigen::CwiseBinaryOp< BinaryOp, Lhs, Rhs >::lhs ( ) const
inline
Returns
the left hand side nested expression

◆ rhs()

template<typename BinaryOp, typename Lhs, typename Rhs>
const RhsNested_ & Eigen::CwiseBinaryOp< BinaryOp, Lhs, Rhs >::rhs ( ) const
inline
Returns
the right hand side nested expression

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