Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Protected Attributes
Eigen::CwiseUnaryOp Class Reference

Detailed Description

Generic expression where a coefficient-wise unary operator is applied to an expression.

Parameters:
UnaryOptemplate functor implementing the operator
XprTypethe type of the expression to which we are applying the unary operator

This class represents an expression where a unary operator is applied to an expression. It is the return type of all operations taking exactly 1 input expression, regardless of the presence of other inputs such as scalars. For example, the operator* in the expression 3*matrix is considered unary, because only the right-hand side is an expression, and its return type is a specialization of CwiseUnaryOp.

Most of the time, this is the only way that it is used, so you typically don't have to name CwiseUnaryOp types explicitly.

See also:
MatrixBase::unaryExpr(const CustomUnaryOp &) const, class CwiseBinaryOp, class CwiseNullaryOp
Inheritance diagram for Eigen::CwiseUnaryOp:
Inheritance graph
[legend]

List of all members.

Public Types

typedef CwiseUnaryOpImpl
< UnaryOp, XprType, typename
internal::traits< XprType >
::StorageKind >::Base 
Base

Public Member Functions

 CwiseUnaryOp (const XprType &xpr, const UnaryOp &func=UnaryOp())
EIGEN_STRONG_INLINE Index rows () const
EIGEN_STRONG_INLINE Index cols () const
const UnaryOp & functor () const
const internal::remove_all
< typename XprType::Nested >
::type & 
nestedExpression () const
internal::remove_all< typename
XprType::Nested >::type & 
nestedExpression ()

Protected Attributes

const XprType::Nested m_xpr
const UnaryOp m_functor

Member Typedef Documentation

typedef CwiseUnaryOpImpl<UnaryOp, XprType,typename internal::traits<XprType>::StorageKind>::Base Eigen::CwiseUnaryOp::Base

Definition at line 78 of file Core.


Constructor & Destructor Documentation

Eigen::CwiseUnaryOp::CwiseUnaryOp ( const XprType &  xpr,
const UnaryOp &  func = UnaryOp() 
) [inline]

Definition at line 81 of file Core.


Member Function Documentation

EIGEN_STRONG_INLINE Index Eigen::CwiseUnaryOp::cols ( void  ) const [inline]

Definition at line 85 of file Core.

const UnaryOp& Eigen::CwiseUnaryOp::functor ( ) const [inline]
Returns:
the functor representing the unary operation

Definition at line 88 of file Core.

const internal::remove_all<typename XprType::Nested>::type& Eigen::CwiseUnaryOp::nestedExpression ( ) const [inline]
Returns:
the nested expression

Definition at line 92 of file Core.

internal::remove_all<typename XprType::Nested>::type& Eigen::CwiseUnaryOp::nestedExpression ( ) [inline]
Returns:
the nested expression

Definition at line 96 of file Core.

EIGEN_STRONG_INLINE Index Eigen::CwiseUnaryOp::rows ( void  ) const [inline]

Definition at line 84 of file Core.


Member Data Documentation

const UnaryOp Eigen::CwiseUnaryOp::m_functor [protected]

Definition at line 100 of file Core.

const XprType::Nested Eigen::CwiseUnaryOp::m_xpr [protected]

Definition at line 99 of file Core.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011