Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Eigen::CwiseUnaryOp< UnaryOp, XprType > Class Template Reference

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

#include <src/eigen/Eigen/src/Core/CwiseUnaryOp.h>

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

Public Types

typedef CwiseUnaryOpImpl< UnaryOp, XprType, typenameinternal::traits< XprType >::StorageKind >::Base Base
 
typedef internal::ref_selector< XprType >::type XprTypeNested
 
typedef internal::remove_all< XprType >::type NestedExpression
 

Public Member Functions

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

Protected Attributes

XprTypeNested 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.

Template 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

Member Typedef Documentation

◆ Base

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

◆ NestedExpression

template<typename UnaryOp , typename XprType >
typedef internal::remove_all<XprType>::type Eigen::CwiseUnaryOp< UnaryOp, XprType >::NestedExpression

◆ XprTypeNested

template<typename UnaryOp , typename XprType >
typedef internal::ref_selector<XprType>::type Eigen::CwiseUnaryOp< UnaryOp, XprType >::XprTypeNested

Constructor & Destructor Documentation

◆ CwiseUnaryOp()

template<typename UnaryOp , typename XprType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::CwiseUnaryOp< UnaryOp, XprType >::CwiseUnaryOp ( const XprType &  xpr,
const UnaryOp &  func = UnaryOp() 
)
inlineexplicit
66 : m_xpr(xpr), m_functor(func) {}
const UnaryOp m_functor
Definition CwiseUnaryOp.h:89
XprTypeNested m_xpr
Definition CwiseUnaryOp.h:88

Member Function Documentation

◆ cols()

template<typename UnaryOp , typename XprType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index Eigen::CwiseUnaryOp< UnaryOp, XprType >::cols ( ) const
inline
71{ return m_xpr.cols(); }

References Eigen::CwiseUnaryOp< UnaryOp, XprType >::m_xpr.

◆ functor()

template<typename UnaryOp , typename XprType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const UnaryOp & Eigen::CwiseUnaryOp< UnaryOp, XprType >::functor ( ) const
inline
Returns
the functor representing the unary operation
75{ return m_functor; }

References Eigen::CwiseUnaryOp< UnaryOp, XprType >::m_functor.

◆ nestedExpression() [1/2]

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

References Eigen::CwiseUnaryOp< UnaryOp, XprType >::m_xpr.

◆ nestedExpression() [2/2]

template<typename UnaryOp , typename XprType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const internal::remove_all< XprTypeNested >::type & Eigen::CwiseUnaryOp< UnaryOp, XprType >::nestedExpression ( ) const
inline
Returns
the nested expression
80{ return m_xpr; }

References Eigen::CwiseUnaryOp< UnaryOp, XprType >::m_xpr.

◆ rows()

template<typename UnaryOp , typename XprType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index Eigen::CwiseUnaryOp< UnaryOp, XprType >::rows ( ) const
inline
69{ return m_xpr.rows(); }

References Eigen::CwiseUnaryOp< UnaryOp, XprType >::m_xpr.

Member Data Documentation

◆ m_functor

template<typename UnaryOp , typename XprType >
const UnaryOp Eigen::CwiseUnaryOp< UnaryOp, XprType >::m_functor
protected

◆ m_xpr


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