CwiseUnaryOp< UnaryOp, MatrixType > Class Template Reference

Generic expression of a coefficient-wise unary operator of a matrix or a vector. More...

List of all members.

Public Member Functions

const Scalar coeff (int index) const
const Scalar coeff (int row, int col) const
int cols () const
 CwiseUnaryOp (const MatrixType &mat, const UnaryOp &func=UnaryOp())
template<int LoadMode>
PacketScalar packet (int index) const
template<int LoadMode>
PacketScalar packet (int row, int col) const
int rows () const

Protected Attributes

const UnaryOp m_functor
const MatrixType::Nested m_matrix

Detailed Description

template<typename UnaryOp, typename MatrixType>
class Eigen::CwiseUnaryOp< UnaryOp, MatrixType >

Generic expression of a coefficient-wise unary operator of a matrix or a vector.

Parameters:
UnaryOp template functor implementing the operator
MatrixType the type of the matrix we are applying the unary operator

This class represents an expression of a generic unary operator of a matrix or a vector. It is the return type of the unary operator-, of a matrix or a vector, and most of the time this is the only way it is used.

See also:
MatrixBase::unaryExpr(const CustomUnaryOp &) const, class CwiseBinaryOp, class CwiseNullaryOp

Member Function Documentation

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

Reimplemented from MatrixBase< CwiseUnaryOp< UnaryOp, MatrixType > >.

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

Reimplemented from MatrixBase< CwiseUnaryOp< UnaryOp, MatrixType > >.


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