Shapeworks Studio  2.1
Shape analysis software suite
List of all members | Public Types | Public Member Functions | Protected Attributes
Eigen::CwiseUnaryOp< UnaryOp, XprType > Class Template Reference

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

#include <CwiseUnaryOp.h>

+ Inheritance diagram for Eigen::CwiseUnaryOp< UnaryOp, XprType >:
+ Collaboration diagram for Eigen::CwiseUnaryOp< UnaryOp, XprType >:

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

XprType::Nested m_xpr
 
const UnaryOp m_functor
 

Detailed Description

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

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

Definition at line 59 of file CwiseUnaryOp.h.

Member Function Documentation

template<typename UnaryOp, typename XprType>
const UnaryOp& Eigen::CwiseUnaryOp< UnaryOp, XprType >::functor ( ) const
inline
Returns
the functor representing the unary operation

Definition at line 74 of file CwiseUnaryOp.h.

74 { return m_functor; }
template<typename UnaryOp, typename XprType>
const internal::remove_all<typename XprType::Nested>::type& Eigen::CwiseUnaryOp< UnaryOp, XprType >::nestedExpression ( ) const
inline
Returns
the nested expression

Definition at line 78 of file CwiseUnaryOp.h.

78 { return m_xpr; }
template<typename UnaryOp, typename XprType>
internal::remove_all<typename XprType::Nested>::type& Eigen::CwiseUnaryOp< UnaryOp, XprType >::nestedExpression ( )
inline
Returns
the nested expression

Definition at line 82 of file CwiseUnaryOp.h.

82 { return m_xpr.const_cast_derived(); }

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