CwiseBinaryOp< BinaryOp, Lhs, Rhs > Class Template Reference

Generic expression of a coefficient-wise operator between two matrices or vectors. More...

List of all members.

Public Types

typedef ei_traits
< CwiseBinaryOp >::LhsNested 
LhsNested
typedef ei_traits
< CwiseBinaryOp >::RhsNested 
RhsNested

Public Member Functions

const Scalar coeff (int index) const
const Scalar coeff (int row, int col) const
int cols () const
 CwiseBinaryOp (const Lhs &lhs, const Rhs &rhs, const BinaryOp &func=BinaryOp())
template<int LoadMode>
PacketScalar packet (int index) const
template<int LoadMode>
PacketScalar packet (int row, int col) const
int rows () const

Protected Attributes

const BinaryOp m_functor
const LhsNested m_lhs
const RhsNested m_rhs

Detailed Description

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

Generic expression of a coefficient-wise operator between two matrices or vectors.

Parameters:
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 of a generic binary operator of two matrices or vectors. It is the return type of the operator+, operator-, and the Cwise methods, and most of the time this is the only way it is used.

However, if you want to write a function returning such an expression, you will need to use this class.

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

Member Function Documentation

int cols ( void   )  const [inline]
Returns:
the number of columns.
See also:
rows(), ColsAtCompileTime

Reimplemented from MatrixBase< CwiseBinaryOp< BinaryOp, Lhs, Rhs > >.

int rows ( void   )  const [inline]
Returns:
the number of rows.
See also:
cols(), RowsAtCompileTime

Reimplemented from MatrixBase< CwiseBinaryOp< BinaryOp, Lhs, Rhs > >.


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

Generated on Mon Aug 31 17:48:40 2009 for Eigen by  doxygen 1.6.1