MOAB  4.9.3pre
Eigen::PartialReduxExpr< MatrixType, MemberOp, Direction > Class Template Reference

Generic expression of a partially reduxed matrix. More...

#include <VectorwiseOp.h>

Inheritance diagram for Eigen::PartialReduxExpr< MatrixType, MemberOp, Direction >:
Collaboration diagram for Eigen::PartialReduxExpr< MatrixType, MemberOp, Direction >:

List of all members.

Public Types

typedef
internal::dense_xpr_base
< PartialReduxExpr >::type 
Base

Public Member Functions

EIGEN_DEVICE_FUNC PartialReduxExpr (const MatrixType &mat, const MemberOp &func=MemberOp())
EIGEN_DEVICE_FUNC Index rows () const
EIGEN_DEVICE_FUNC Index cols () const
EIGEN_DEVICE_FUNC
MatrixType::Nested 
nestedExpression () const
EIGEN_DEVICE_FUNC const MemberOp & functor () const

Protected Attributes

MatrixType::Nested m_matrix
const MemberOp m_functor

Detailed Description

template<typename MatrixType, typename MemberOp, int Direction>
class Eigen::PartialReduxExpr< MatrixType, MemberOp, Direction >

Generic expression of a partially reduxed matrix.

Template Parameters:
MatrixTypethe type of the matrix we are applying the redux operation
MemberOptype of the member functor
Directionindicates the direction of the redux (Vertical or Horizontal)

This class represents an expression of a partial redux operator of a matrix. It is the return type of some VectorwiseOp functions, and most of the time this is the only way it is used.

See also:
class VectorwiseOp

Definition at line 56 of file VectorwiseOp.h.


Member Typedef Documentation

template<typename MatrixType , typename MemberOp , int Direction>
typedef internal::dense_xpr_base<PartialReduxExpr>::type Eigen::PartialReduxExpr< MatrixType, MemberOp, Direction >::Base

Definition at line 61 of file VectorwiseOp.h.


Constructor & Destructor Documentation

template<typename MatrixType , typename MemberOp , int Direction>
EIGEN_DEVICE_FUNC Eigen::PartialReduxExpr< MatrixType, MemberOp, Direction >::PartialReduxExpr ( const MatrixType &  mat,
const MemberOp &  func = MemberOp() 
) [inline, explicit]

Definition at line 65 of file VectorwiseOp.h.

      : m_matrix(mat), m_functor(func) {}

Member Function Documentation

template<typename MatrixType , typename MemberOp , int Direction>
EIGEN_DEVICE_FUNC Index Eigen::PartialReduxExpr< MatrixType, MemberOp, Direction >::cols ( void  ) const [inline]

Definition at line 71 of file VectorwiseOp.h.

{ return (Direction==Horizontal ? 1 : m_matrix.cols()); }
template<typename MatrixType , typename MemberOp , int Direction>
EIGEN_DEVICE_FUNC const MemberOp& Eigen::PartialReduxExpr< MatrixType, MemberOp, Direction >::functor ( ) const [inline]

Definition at line 77 of file VectorwiseOp.h.

{ return m_functor; }
template<typename MatrixType , typename MemberOp , int Direction>
EIGEN_DEVICE_FUNC MatrixType::Nested Eigen::PartialReduxExpr< MatrixType, MemberOp, Direction >::nestedExpression ( ) const [inline]

Definition at line 74 of file VectorwiseOp.h.

{ return m_matrix; }
template<typename MatrixType , typename MemberOp , int Direction>
EIGEN_DEVICE_FUNC Index Eigen::PartialReduxExpr< MatrixType, MemberOp, Direction >::rows ( void  ) const [inline]

Definition at line 69 of file VectorwiseOp.h.

{ return (Direction==Vertical   ? 1 : m_matrix.rows()); }

Member Data Documentation

template<typename MatrixType , typename MemberOp , int Direction>
const MemberOp Eigen::PartialReduxExpr< MatrixType, MemberOp, Direction >::m_functor [protected]

Definition at line 81 of file VectorwiseOp.h.

template<typename MatrixType , typename MemberOp , int Direction>
MatrixType::Nested Eigen::PartialReduxExpr< MatrixType, MemberOp, Direction >::m_matrix [protected]

Definition at line 80 of file VectorwiseOp.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines