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 |
Public Member Functions | |
EIGEN_STRONG_INLINE Index | cols () const |
CwiseUnaryOp (const XprType &xpr, const UnaryOp &func=UnaryOp()) | |
const UnaryOp & | functor () const |
const internal::remove_all < typename XprType::Nested > ::type & | nestedExpression () const |
internal::remove_all< typename XprType::Nested >::type & | nestedExpression () |
EIGEN_STRONG_INLINE Index | rows () const |
Protected Attributes | |
const UnaryOp | m_functor |
const XprType::Nested | 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 72 of file CwiseUnaryOp.h.
typedef CwiseUnaryOpImpl<UnaryOp, XprType,typename internal::traits<XprType>::StorageKind>::Base CwiseUnaryOp< UnaryOp, XprType >::Base |
Definition at line 77 of file CwiseUnaryOp.h.
CwiseUnaryOp< UnaryOp, XprType >::CwiseUnaryOp | ( | const XprType & | xpr, |
const UnaryOp & | func = UnaryOp() |
||
) | [inline] |
Definition at line 80 of file CwiseUnaryOp.h.
EIGEN_STRONG_INLINE Index CwiseUnaryOp< UnaryOp, XprType >::cols | ( | ) | const [inline] |
Definition at line 84 of file CwiseUnaryOp.h.
const UnaryOp& CwiseUnaryOp< UnaryOp, XprType >::functor | ( | ) | const [inline] |
Definition at line 87 of file CwiseUnaryOp.h.
const internal::remove_all<typename XprType::Nested>::type& CwiseUnaryOp< UnaryOp, XprType >::nestedExpression | ( | ) | const [inline] |
Definition at line 91 of file CwiseUnaryOp.h.
internal::remove_all<typename XprType::Nested>::type& CwiseUnaryOp< UnaryOp, XprType >::nestedExpression | ( | ) | [inline] |
Definition at line 95 of file CwiseUnaryOp.h.
EIGEN_STRONG_INLINE Index CwiseUnaryOp< UnaryOp, XprType >::rows | ( | ) | const [inline] |
Definition at line 83 of file CwiseUnaryOp.h.
const UnaryOp CwiseUnaryOp< UnaryOp, XprType >::m_functor [protected] |
Definition at line 99 of file CwiseUnaryOp.h.
const XprType::Nested CwiseUnaryOp< UnaryOp, XprType >::m_xpr [protected] |
Definition at line 98 of file CwiseUnaryOp.h.