Public Types | Public Member Functions | Protected Attributes

MatrixWrapper< ExpressionType > Class Template Reference

Expression of an array as a mathematical vector or matrix. More...

#include <ArrayWrapper.h>

Inheritance diagram for MatrixWrapper< ExpressionType >:
MatrixBase< MatrixWrapper< ExpressionType > > DenseBase< MatrixWrapper< ExpressionType > > internal::special_scalar_op_base< Derived, Scalar, OtherScalar, EnableIt > DenseCoeffsBase

List of all members.

Public Types

typedef MatrixBase
< MatrixWrapper
< ExpressionType > > 
Base
typedef internal::nested
< ExpressionType >::type 
NestedExpressionType

Public Member Functions

 MatrixWrapper (const ExpressionType &matrix)
Index rows () const
Index cols () const
Index outerStride () const
Index innerStride () const
const CoeffReturnType coeff (Index row, Index col) const
ScalarcoeffRef (Index row, Index col)
const ScalarcoeffRef (Index row, Index col) const
const CoeffReturnType coeff (Index index) const
ScalarcoeffRef (Index index)
const ScalarcoeffRef (Index index) const
template<int LoadMode>
const PacketScalar packet (Index row, Index col) const
template<int LoadMode>
void writePacket (Index row, Index col, const PacketScalar &x)
template<int LoadMode>
const PacketScalar packet (Index index) const
template<int LoadMode>
void writePacket (Index index, const PacketScalar &x)

Protected Attributes

const NestedExpressionType m_expression

Detailed Description

template<typename ExpressionType>
class MatrixWrapper< ExpressionType >

Expression of an array as a mathematical vector or matrix.

This class is the return type of ArrayBase::matrix(), and most of the time this is the only way it is use.

See also:
MatrixBase::matrix(), class ArrayWrapper

Member Typedef Documentation

template<typename ExpressionType >
typedef MatrixBase<MatrixWrapper<ExpressionType> > MatrixWrapper< ExpressionType >::Base
template<typename ExpressionType >
typedef internal::nested<ExpressionType>::type MatrixWrapper< ExpressionType >::NestedExpressionType

Constructor & Destructor Documentation

template<typename ExpressionType >
MatrixWrapper< ExpressionType >::MatrixWrapper ( const ExpressionType &  matrix  )  [inline]

Member Function Documentation

template<typename ExpressionType >
const CoeffReturnType MatrixWrapper< ExpressionType >::coeff ( Index  row,
Index  col 
) const [inline]
template<typename ExpressionType >
const CoeffReturnType MatrixWrapper< ExpressionType >::coeff ( Index  index  )  const [inline]
template<typename ExpressionType >
Scalar& MatrixWrapper< ExpressionType >::coeffRef ( Index  index  )  [inline]
template<typename ExpressionType >
const Scalar& MatrixWrapper< ExpressionType >::coeffRef ( Index  index  )  const [inline]
template<typename ExpressionType >
Scalar& MatrixWrapper< ExpressionType >::coeffRef ( Index  row,
Index  col 
) [inline]
template<typename ExpressionType >
const Scalar& MatrixWrapper< ExpressionType >::coeffRef ( Index  row,
Index  col 
) const [inline]
template<typename ExpressionType >
Index MatrixWrapper< ExpressionType >::cols (  )  const [inline]
template<typename ExpressionType >
Index MatrixWrapper< ExpressionType >::innerStride (  )  const [inline]
template<typename ExpressionType >
Index MatrixWrapper< ExpressionType >::outerStride (  )  const [inline]
template<typename ExpressionType >
template<int LoadMode>
const PacketScalar MatrixWrapper< ExpressionType >::packet ( Index  index  )  const [inline]
template<typename ExpressionType >
template<int LoadMode>
const PacketScalar MatrixWrapper< ExpressionType >::packet ( Index  row,
Index  col 
) const [inline]
template<typename ExpressionType >
Index MatrixWrapper< ExpressionType >::rows (  )  const [inline]
template<typename ExpressionType >
template<int LoadMode>
void MatrixWrapper< ExpressionType >::writePacket ( Index  index,
const PacketScalar x 
) [inline]
template<typename ExpressionType >
template<int LoadMode>
void MatrixWrapper< ExpressionType >::writePacket ( Index  row,
Index  col,
const PacketScalar x 
) [inline]

Member Data Documentation

template<typename ExpressionType >
const NestedExpressionType MatrixWrapper< ExpressionType >::m_expression [protected]

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