Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Protected Attributes
Eigen::CwiseUnaryView Class Reference

Detailed Description

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
Inheritance diagram for Eigen::CwiseUnaryView:
Inheritance graph
[legend]

List of all members.

Public Types

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

Public Member Functions

 CwiseUnaryView (const 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
< typename MatrixType::Nested >
::type & 
nestedExpression () const
internal::remove_all< typename
MatrixType::Nested >::type & 
nestedExpression ()

Protected Attributes

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

Member Typedef Documentation

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

Definition at line 77 of file Core.


Constructor & Destructor Documentation

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

Definition at line 80 of file Core.


Member Function Documentation

EIGEN_STRONG_INLINE Index Eigen::CwiseUnaryView::cols ( void  ) const [inline]

Definition at line 86 of file Core.

const ViewOp& Eigen::CwiseUnaryView::functor ( ) const [inline]
Returns:
the functor representing unary operation

Definition at line 89 of file Core.

const internal::remove_all<typename MatrixType::Nested>::type& Eigen::CwiseUnaryView::nestedExpression ( ) const [inline]
Returns:
the nested expression

Definition at line 93 of file Core.

internal::remove_all<typename MatrixType::Nested>::type& Eigen::CwiseUnaryView::nestedExpression ( ) [inline]
Returns:
the nested expression

Definition at line 97 of file Core.

EIGEN_STRONG_INLINE Index Eigen::CwiseUnaryView::rows ( void  ) const [inline]

Definition at line 85 of file Core.


Member Data Documentation

Definition at line 102 of file Core.

const internal::nested<MatrixType>::type Eigen::CwiseUnaryView::m_matrix [protected]

Definition at line 101 of file Core.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011