Generic expression where a coefficient-wise unary operator is applied to an expression. More...
#include <CwiseUnaryOp.h>
Public Types | |
typedef CwiseUnaryOpImpl< UnaryOp, XprType, typename internal::traits< XprType >::StorageKind >::Base | Base |
typedef internal::remove_all< XprType >::type | NestedExpression |
typedef internal::ref_selector< XprType >::type | XprTypeNested |
Public Types inherited from Eigen::CwiseUnaryOpImpl< UnaryOp, XprType, internal::traits< XprType >::StorageKind > | |
typedef internal::generic_xpr_base< CwiseUnaryOp< UnaryOp, XprType > >::type | Base |
Public Member Functions | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | CwiseUnaryOp (const XprType &xpr, const UnaryOp &func=UnaryOp()) |
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 () |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
Protected Attributes | |
const UnaryOp | m_functor |
XprTypeNested | m_xpr |
Generic expression where a coefficient-wise unary operator is applied to an expression.
UnaryOp | template functor implementing the operator |
XprType | the 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.
Definition at line 55 of file CwiseUnaryOp.h.
typedef CwiseUnaryOpImpl<UnaryOp, XprType,typename internal::traits<XprType>::StorageKind>::Base Eigen::CwiseUnaryOp< UnaryOp, XprType >::Base |
Definition at line 59 of file CwiseUnaryOp.h.
typedef internal::remove_all<XprType>::type Eigen::CwiseUnaryOp< UnaryOp, XprType >::NestedExpression |
Definition at line 62 of file CwiseUnaryOp.h.
typedef internal::ref_selector<XprType>::type Eigen::CwiseUnaryOp< UnaryOp, XprType >::XprTypeNested |
Definition at line 61 of file CwiseUnaryOp.h.
|
inlineexplicit |
Definition at line 65 of file CwiseUnaryOp.h.
|
inline |
Definition at line 71 of file CwiseUnaryOp.h.
|
inline |
Definition at line 75 of file CwiseUnaryOp.h.
|
inline |
Definition at line 80 of file CwiseUnaryOp.h.
|
inline |
Definition at line 85 of file CwiseUnaryOp.h.
|
inline |
Definition at line 69 of file CwiseUnaryOp.h.
|
protected |
Definition at line 89 of file CwiseUnaryOp.h.
|
protected |
Definition at line 88 of file CwiseUnaryOp.h.