Public Types | Public Member Functions | Protected Attributes
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 CwiseUnaryView< ViewOp, MatrixType >:

List of all members.

Public Types

typedef CwiseUnaryViewImpl
< ViewOp, MatrixType, typename
internal::traits< MatrixType >
::StorageKind >::Base 
Base

Public Member Functions

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

Protected Attributes

ViewOp m_functor
internal::nested< MatrixType >
::type 
m_matrix

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.

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 Typedef Documentation

typedef CwiseUnaryViewImpl<ViewOp, MatrixType,typename internal::traits<MatrixType>::StorageKind>::Base Base

Constructor & Destructor Documentation

CwiseUnaryView ( const MatrixType &  mat,
const ViewOp &  func = ViewOp() 
) [inline]

Member Function Documentation

Index cols ( ) const [inline]
const ViewOp& functor ( ) const [inline]
Returns:
the functor representing unary operation
const internal::remove_all<typename MatrixType::Nested>::type& nestedExpression ( ) const [inline]
Returns:
the nested expression
internal::remove_all<typename MatrixType::Nested>::type& nestedExpression ( ) [inline]
Returns:
the nested expression
Index rows ( ) const [inline]

Member Data Documentation

ViewOp m_functor [protected]
internal::nested<MatrixType>::type m_matrix [protected]

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