CwiseUnaryOp< UnaryOp, MatrixType > Class Template Reference

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

#include <CwiseUnaryOp.h>

Inheritance diagram for CwiseUnaryOp< UnaryOp, MatrixType >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Protected Attributes

const UnaryOp m_functor
const MatrixType::Nested m_matrix

Detailed Description

template<typename UnaryOp, typename MatrixType>
class 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

Definition at line 60 of file CwiseUnaryOp.h.


Constructor & Destructor Documentation

template<typename UnaryOp, typename MatrixType>
CwiseUnaryOp< UnaryOp, MatrixType >::CwiseUnaryOp ( const MatrixType &  mat,
const UnaryOp &  func = UnaryOp() 
) [inline]

Definition at line 67 of file CwiseUnaryOp.h.


Member Function Documentation

template<typename UnaryOp, typename MatrixType>
EIGEN_STRONG_INLINE const Scalar CwiseUnaryOp< UnaryOp, MatrixType >::coeff ( int  index  )  const [inline]

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

Definition at line 84 of file CwiseUnaryOp.h.

template<typename UnaryOp, typename MatrixType>
EIGEN_STRONG_INLINE const Scalar CwiseUnaryOp< UnaryOp, MatrixType >::coeff ( int  row,
int  col 
) const [inline]

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

Definition at line 73 of file CwiseUnaryOp.h.

template<typename UnaryOp, typename MatrixType>
EIGEN_STRONG_INLINE int CwiseUnaryOp< UnaryOp, MatrixType >::cols (  )  const [inline]
Returns:
the number of columns.
See also:
rows(), ColsAtCompileTime

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

Definition at line 71 of file CwiseUnaryOp.h.

template<typename UnaryOp, typename MatrixType>
template<int LoadMode>
EIGEN_STRONG_INLINE PacketScalar CwiseUnaryOp< UnaryOp, MatrixType >::packet ( int  index  )  const [inline]

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

Definition at line 90 of file CwiseUnaryOp.h.

template<typename UnaryOp, typename MatrixType>
template<int LoadMode>
EIGEN_STRONG_INLINE PacketScalar CwiseUnaryOp< UnaryOp, MatrixType >::packet ( int  row,
int  col 
) const [inline]

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

Definition at line 79 of file CwiseUnaryOp.h.

template<typename UnaryOp, typename MatrixType>
EIGEN_STRONG_INLINE int CwiseUnaryOp< UnaryOp, MatrixType >::rows (  )  const [inline]
Returns:
the number of rows.
See also:
cols(), RowsAtCompileTime

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

Definition at line 70 of file CwiseUnaryOp.h.


Member Data Documentation

template<typename UnaryOp, typename MatrixType>
const UnaryOp CwiseUnaryOp< UnaryOp, MatrixType >::m_functor [protected]

Definition at line 97 of file CwiseUnaryOp.h.

template<typename UnaryOp, typename MatrixType>
const MatrixType::Nested CwiseUnaryOp< UnaryOp, MatrixType >::m_matrix [protected]

Definition at line 96 of file CwiseUnaryOp.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:21:59 2013