compbio
Public Types | Public Member Functions | Protected Attributes | List of all members
Eigen::CwiseUnaryView< ViewOp, MatrixType > Class Template Reference

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

#include <CwiseUnaryView.h>

Inheritance diagram for Eigen::CwiseUnaryView< ViewOp, MatrixType >:
Eigen::CwiseUnaryViewImpl< ViewOp, MatrixType, internal::traits< MatrixType >::StorageKind >

Public Types

typedef CwiseUnaryViewImpl< ViewOp, MatrixType, typename internal::traits< MatrixType >::StorageKind >::Base Base
 
typedef internal::ref_selector< MatrixType >::non_const_type MatrixTypeNested
 
typedef internal::remove_all< MatrixType >::type NestedExpression
 
- Public Types inherited from Eigen::CwiseUnaryViewImpl< ViewOp, MatrixType, internal::traits< MatrixType >::StorageKind >
typedef internal::generic_xpr_base< CwiseUnaryView< ViewOp, MatrixType > >::type Base
 

Public Member Functions

 CwiseUnaryView (MatrixType &mat, const ViewOp &func=ViewOp())
 
EIGEN_STRONG_INLINE Index rows () const
 
EIGEN_STRONG_INLINE Index cols () const
 
const ViewOp & functor () const
 
const internal::remove_all< MatrixTypeNested >::type & nestedExpression () const
 
internal::remove_reference< MatrixTypeNested >::type & nestedExpression ()
 

Protected Attributes

MatrixTypeNested m_matrix
 
ViewOp m_functor
 

Detailed Description

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

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

Template Parameters
ViewOptemplate functor implementing the view
MatrixTypethe type of the matrix we are applying the unary operator

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.

See also
MatrixBase::unaryViewExpr(const CustomUnaryOp &) const, class CwiseUnaryOp

Member Function Documentation

§ functor()

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

§ nestedExpression() [1/2]

template<typename ViewOp, typename MatrixType>
const internal::remove_all<MatrixTypeNested>::type& Eigen::CwiseUnaryView< ViewOp, MatrixType >::nestedExpression ( ) const
inline
Returns
the nested expression

§ nestedExpression() [2/2]

template<typename ViewOp, typename MatrixType>
internal::remove_reference<MatrixTypeNested>::type& Eigen::CwiseUnaryView< ViewOp, MatrixType >::nestedExpression ( )
inline
Returns
the nested expression

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