Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Protected Attributes
Eigen::CwiseBinaryOp Class Reference

Detailed Description

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
Inheritance diagram for Eigen::CwiseBinaryOp:
Inheritance graph
[legend]

List of all members.

Public Types

typedef CwiseBinaryOpImpl
< BinaryOp, Lhs, Rhs, typename
internal::promote_storage_type
< typename internal::traits
< Lhs >::StorageKind, typename
internal::traits< Rhs >
::StorageKind >::ret >::Base 
Base
typedef internal::nested< Lhs >
::type 
LhsNested
typedef internal::nested< Rhs >
::type 
RhsNested
typedef
internal::remove_reference
< LhsNested >::type 
_LhsNested
typedef
internal::remove_reference
< RhsNested >::type 
_RhsNested

Public Member Functions

EIGEN_STRONG_INLINE CwiseBinaryOp (const Lhs &lhs, const Rhs &rhs, const BinaryOp &func=BinaryOp())
EIGEN_STRONG_INLINE Index rows () const
EIGEN_STRONG_INLINE Index cols () const
const _LhsNestedlhs () const
const _RhsNestedrhs () const
const BinaryOp & functor () const

Protected Attributes

const LhsNested m_lhs
const RhsNested m_rhs
const BinaryOp m_functor

Member Typedef Documentation

Definition at line 136 of file Core.

Definition at line 137 of file Core.

typedef CwiseBinaryOpImpl< BinaryOp, Lhs, Rhs, typename internal::promote_storage_type<typename internal::traits<Lhs>::StorageKind, typename internal::traits<Rhs>::StorageKind>::ret>::Base Eigen::CwiseBinaryOp::Base

Definition at line 131 of file Core.

Definition at line 134 of file Core.

Definition at line 135 of file Core.


Constructor & Destructor Documentation

EIGEN_STRONG_INLINE Eigen::CwiseBinaryOp::CwiseBinaryOp ( const Lhs &  lhs,
const Rhs &  rhs,
const BinaryOp &  func = BinaryOp() 
) [inline]

Definition at line 139 of file Core.


Member Function Documentation

EIGEN_STRONG_INLINE Index Eigen::CwiseBinaryOp::cols ( void  ) const [inline]

Definition at line 155 of file Core.

const BinaryOp& Eigen::CwiseBinaryOp::functor ( ) const [inline]
Returns:
the functor representing the binary operation

Definition at line 168 of file Core.

const _LhsNested& Eigen::CwiseBinaryOp::lhs ( ) const [inline]
Returns:
the left hand side nested expression

Definition at line 164 of file Core.

const _RhsNested& Eigen::CwiseBinaryOp::rhs ( ) const [inline]
Returns:
the right hand side nested expression

Definition at line 166 of file Core.

EIGEN_STRONG_INLINE Index Eigen::CwiseBinaryOp::rows ( void  ) const [inline]

Definition at line 148 of file Core.


Member Data Documentation

const BinaryOp Eigen::CwiseBinaryOp::m_functor [protected]

Definition at line 173 of file Core.

Definition at line 171 of file Core.

Definition at line 172 of file Core.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011