template<typename ViewOp, typename MatrixType>
Eigen::CwiseUnaryView class

Generic lvalue expression of a coefficient-wise unary operator of a matrix or a vector.

Template parameters
ViewOp template functor implementing the view
MatrixType the type of the matrix we are applying the unary operator

Contents

This class represents a lvalue expression of a generic unary view operator of a matrix or a vector. It is the return type of real() and imag(), and most of the time this is the only way it is used.

Public functions

auto functor() const -> const ViewOp&
auto nestedExpression() const -> const internal::remove_all<MatrixTypeNested>::type&
auto nestedExpression() -> internal::remove_reference<MatrixTypeNested>::type&

Function documentation

template<typename ViewOp, typename MatrixType>
const ViewOp& Eigen::CwiseUnaryView<ViewOp, MatrixType>::functor() const

Returns the functor representing unary operation

template<typename ViewOp, typename MatrixType>
const internal::remove_all<MatrixTypeNested>::type& Eigen::CwiseUnaryView<ViewOp, MatrixType>::nestedExpression() const

Returns the nested expression

template<typename ViewOp, typename MatrixType>
internal::remove_reference<MatrixTypeNested>::type& Eigen::CwiseUnaryView<ViewOp, MatrixType>::nestedExpression()

Returns the nested expression