Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Protected Attributes

CwiseUnaryView< ViewOp, MatrixType > Class Template Reference


Detailed Description

template<typename ViewOp, typename MatrixType>
class 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

Definition at line 71 of file CwiseUnaryView.h.

#include <src/Core/CwiseUnaryView.h>

Inheritance diagram for CwiseUnaryView< ViewOp, MatrixType >:
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

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

Definition at line 76 of file CwiseUnaryView.h.


Constructor & Destructor Documentation

template<typename ViewOp , typename MatrixType >
CwiseUnaryView< ViewOp, MatrixType >::CwiseUnaryView ( const MatrixType &  mat,
const ViewOp &  func = ViewOp() 
) [inline]

Definition at line 79 of file CwiseUnaryView.h.


Member Function Documentation

template<typename ViewOp , typename MatrixType >
EIGEN_STRONG_INLINE Index CwiseUnaryView< ViewOp, MatrixType >::cols ( ) const [inline]

Definition at line 85 of file CwiseUnaryView.h.

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

Definition at line 88 of file CwiseUnaryView.h.

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

Definition at line 92 of file CwiseUnaryView.h.

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

Definition at line 96 of file CwiseUnaryView.h.

template<typename ViewOp , typename MatrixType >
EIGEN_STRONG_INLINE Index CwiseUnaryView< ViewOp, MatrixType >::rows ( ) const [inline]

Definition at line 84 of file CwiseUnaryView.h.


Member Data Documentation

template<typename ViewOp , typename MatrixType >
ViewOp CwiseUnaryView< ViewOp, MatrixType >::m_functor [protected]

Definition at line 101 of file CwiseUnaryView.h.

template<typename ViewOp , typename MatrixType >
const internal::nested<MatrixType>::type CwiseUnaryView< ViewOp, MatrixType >::m_matrix [protected]

Definition at line 100 of file CwiseUnaryView.h.




Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN:exported at Tue Jan 25 21:56:31 UTC 2011