Generic expression where a coefficient-wise binary operator is applied to two expressions.
BinaryOp | template functor implementing the operator | |
Lhs | the type of the left-hand side | |
Rhs | the 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.
Definition at line 119 of file CwiseBinaryOp.h.
#include <src/Core/CwiseBinaryOp.h>
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 _LhsNested & | lhs () const |
const _RhsNested & | rhs () const |
const BinaryOp & | functor () const |
Protected Attributes | |
const LhsNested | m_lhs |
const RhsNested | m_rhs |
const BinaryOp | m_functor |
typedef internal::remove_reference<LhsNested>::type CwiseBinaryOp< BinaryOp, Lhs, Rhs >::_LhsNested |
Definition at line 135 of file CwiseBinaryOp.h.
typedef internal::remove_reference<RhsNested>::type CwiseBinaryOp< BinaryOp, Lhs, Rhs >::_RhsNested |
Definition at line 136 of file CwiseBinaryOp.h.
typedef CwiseBinaryOpImpl< BinaryOp, Lhs, Rhs, typename internal::promote_storage_type<typename internal::traits<Lhs>::StorageKind, typename internal::traits<Rhs>::StorageKind>::ret>::Base CwiseBinaryOp< BinaryOp, Lhs, Rhs >::Base |
Definition at line 130 of file CwiseBinaryOp.h.
typedef internal::nested<Lhs>::type CwiseBinaryOp< BinaryOp, Lhs, Rhs >::LhsNested |
Definition at line 133 of file CwiseBinaryOp.h.
typedef internal::nested<Rhs>::type CwiseBinaryOp< BinaryOp, Lhs, Rhs >::RhsNested |
Definition at line 134 of file CwiseBinaryOp.h.
EIGEN_STRONG_INLINE CwiseBinaryOp< BinaryOp, Lhs, Rhs >::CwiseBinaryOp | ( | const Lhs & | lhs, | |
const Rhs & | rhs, | |||
const BinaryOp & | func = BinaryOp() | |||
) | [inline] |
Definition at line 138 of file CwiseBinaryOp.h.
References eigen_assert, EIGEN_CHECK_BINARY_COMPATIBILIY, and EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE.
EIGEN_STRONG_INLINE Index CwiseBinaryOp< BinaryOp, Lhs, Rhs >::cols | ( | ) | const [inline] |
Definition at line 154 of file CwiseBinaryOp.h.
References Dynamic.
const BinaryOp& CwiseBinaryOp< BinaryOp, Lhs, Rhs >::functor | ( | ) | const [inline] |
Definition at line 167 of file CwiseBinaryOp.h.
const _LhsNested& CwiseBinaryOp< BinaryOp, Lhs, Rhs >::lhs | ( | ) | const [inline] |
Definition at line 163 of file CwiseBinaryOp.h.
Referenced by internal::check_transpose_aliasing_run_time_selector< Scalar, DestIsTransposed, CwiseBinaryOp< BinOp, DerivedA, DerivedB > >::run().
const _RhsNested& CwiseBinaryOp< BinaryOp, Lhs, Rhs >::rhs | ( | ) | const [inline] |
Definition at line 165 of file CwiseBinaryOp.h.
Referenced by internal::check_transpose_aliasing_run_time_selector< Scalar, DestIsTransposed, CwiseBinaryOp< BinOp, DerivedA, DerivedB > >::run().
EIGEN_STRONG_INLINE Index CwiseBinaryOp< BinaryOp, Lhs, Rhs >::rows | ( | ) | const [inline] |
Definition at line 147 of file CwiseBinaryOp.h.
References Dynamic.
const BinaryOp CwiseBinaryOp< BinaryOp, Lhs, Rhs >::m_functor [protected] |
Definition at line 172 of file CwiseBinaryOp.h.
const LhsNested CwiseBinaryOp< BinaryOp, Lhs, Rhs >::m_lhs [protected] |
Definition at line 170 of file CwiseBinaryOp.h.
const RhsNested CwiseBinaryOp< BinaryOp, Lhs, Rhs >::m_rhs [protected] |
Definition at line 171 of file CwiseBinaryOp.h.
Page generated by Doxygen 1.7.1 for MRPT 0.9.4 SVN: at Mon Jan 10 23:33:19 UTC 2011 |