Eigen  3.4.90 (git rev 9589cc4e7fd8e4538bedef80dd36c7738977a8be)
 
Loading...
Searching...
No Matches
Eigen::CwiseUnaryOp< UnaryOp, MatrixType > Class Template Reference

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

Detailed Description

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

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

Public Member Functions

const UnaryOp & functor () const
 
internal::remove_all_t< XprTypeNested > & nestedExpression ()
 
const internal::remove_all_t< XprTypeNested > & nestedExpression () const
 

Member Function Documentation

◆ functor()

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

◆ nestedExpression() [1/2]

template<typename UnaryOp, typename MatrixType>
internal::remove_all_t< XprTypeNested > & Eigen::CwiseUnaryOp< UnaryOp, MatrixType >::nestedExpression ( )
inline
Returns
the nested expression

◆ nestedExpression() [2/2]

template<typename UnaryOp, typename MatrixType>
const internal::remove_all_t< XprTypeNested > & Eigen::CwiseUnaryOp< UnaryOp, MatrixType >::nestedExpression ( ) const
inline
Returns
the nested expression

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