![]() |
|
Generic expression where a coefficient-wise binary operator is applied to two expressions. More...
#include <CwiseBinaryOp.h>
Public Types | |
typedef internal::remove_all_t< BinaryOp > | Functor |
typedef internal::remove_all_t< LhsType > | Lhs |
typedef internal::remove_all_t< RhsType > | Rhs |
typedef CwiseBinaryOpImpl< BinaryOp, LhsType, RhsType, typename internal::cwise_promote_storage_type< typename internal::traits< LhsType >::StorageKind, typename internal::traits< Rhs >::StorageKind, BinaryOp >::ret >::Base | Base |
typedef internal::ref_selector< LhsType >::type | LhsNested |
typedef internal::ref_selector< RhsType >::type | RhsNested |
typedef std::remove_reference_t< LhsNested > | LhsNested_ |
typedef std::remove_reference_t< RhsNested > | RhsNested_ |
![]() | |
typedef internal::generic_xpr_base< CwiseBinaryOp< BinaryOp, LhsType, RhsType > >::type | Base |
Public Member Functions | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | CwiseBinaryOp (const Lhs &aLhs, const Rhs &aRhs, const BinaryOp &func=BinaryOp()) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const LhsNested_ & | lhs () const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const RhsNested_ & | rhs () const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const BinaryOp & | functor () const |
Protected Attributes | |
LhsNested | m_lhs |
RhsNested | m_rhs |
const BinaryOp | m_functor |
Generic expression where a coefficient-wise binary operator is applied to two expressions.
BinaryOp | template functor implementing the operator |
LhsType | the type of the left-hand side |
RhsType | 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.
typedef CwiseBinaryOpImpl< BinaryOp, LhsType, RhsType, typename internal::cwise_promote_storage_type<typename internal::traits<LhsType>::StorageKind, typename internal::traits<Rhs>::StorageKind, BinaryOp>::ret>::Base Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::Base |
typedef internal::remove_all_t<BinaryOp> Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::Functor |
typedef internal::remove_all_t<LhsType> Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::Lhs |
typedef internal::ref_selector<LhsType>::type Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::LhsNested |
typedef std::remove_reference_t<LhsNested> Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::LhsNested_ |
typedef internal::remove_all_t<RhsType> Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::Rhs |
typedef internal::ref_selector<RhsType>::type Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::RhsNested |
typedef std::remove_reference_t<RhsNested> Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::RhsNested_ |
|
inline |
References eigen_assert.
|
inline |
References Eigen::Dynamic, Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::m_lhs, and Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::m_rhs.
Referenced by gdb.printers._MatrixEntryIterator::__next__(), gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), Eigen::internal::visitor_evaluator< XprType >::cols(), Eigen::Reshaped< XprType, Rows, Cols, Order >::Reshaped(), Eigen::internal::redux_impl< Func, Evaluator, DefaultTraversal, NoUnrolling >::run(), Eigen::internal::redux_impl< Func, Evaluator, SliceVectorizedTraversal, Unrolling >::run(), Eigen::internal::redux_impl< Func, Evaluator, LinearVectorizedTraversal, CompleteUnrolling >::run(), Eigen::internal::triangular_solver_selector< Lhs, Rhs, Side, Mode, NoUnrolling, 1 >::run(), gdb.printers.EigenMatrixPrinter::to_string(), and gdb.printers.EigenSparseMatrixPrinter::to_string().
|
inline |
References Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::m_functor.
|
inline |
References Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::m_lhs.
Referenced by Eigen::internal::check_transpose_aliasing_run_time_selector< Scalar, DestIsTransposed, CwiseBinaryOp< BinOp, DerivedA, DerivedB > >::run(), and Eigen::internal::Assignment< DstXprType, CwiseBinaryOp< internal::scalar_product_op< ScalarBis, Scalar >, const CwiseNullaryOp< internal::scalar_constant_op< ScalarBis >, Plain >, const Product< Lhs, Rhs, DefaultProduct > >, AssignFunc, Dense2Dense >::run().
|
inline |
References Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::m_rhs.
Referenced by Eigen::internal::check_transpose_aliasing_run_time_selector< Scalar, DestIsTransposed, CwiseBinaryOp< BinOp, DerivedA, DerivedB > >::run(), and Eigen::internal::Assignment< DstXprType, CwiseBinaryOp< internal::scalar_product_op< ScalarBis, Scalar >, const CwiseNullaryOp< internal::scalar_constant_op< ScalarBis >, Plain >, const Product< Lhs, Rhs, DefaultProduct > >, AssignFunc, Dense2Dense >::run().
|
inline |
References Eigen::Dynamic, Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::m_lhs, and Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::m_rhs.
Referenced by gdb.printers._MatrixEntryIterator::__next__(), gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), Eigen::Reshaped< XprType, Rows, Cols, Order >::Reshaped(), Eigen::internal::visitor_evaluator< XprType >::rows(), Eigen::internal::redux_impl< Func, Evaluator, DefaultTraversal, NoUnrolling >::run(), Eigen::internal::redux_impl< Func, Evaluator, SliceVectorizedTraversal, Unrolling >::run(), Eigen::internal::redux_impl< Func, Evaluator, LinearVectorizedTraversal, CompleteUnrolling >::run(), gdb.printers.EigenMatrixPrinter::to_string(), and gdb.printers.EigenSparseMatrixPrinter::to_string().
|
protected |
|
protected |
|
protected |