Public Types | Public Member Functions | Protected Attributes

Replicate< MatrixType, RowFactor, ColFactor > Class Template Reference

Expression of the multiple replication of a matrix or vector. More...

#include <Replicate.h>

List of all members.

Public Types

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

Public Member Functions

template<typename OriginalMatrixType >
 Replicate (const OriginalMatrixType &matrix)
template<typename OriginalMatrixType >
 Replicate (const OriginalMatrixType &matrix, int rowFactor, int colFactor)
Index rows () const
Index cols () const
Scalar coeff (Index row, Index col) const
template<int LoadMode>
PacketScalar packet (Index row, Index col) const

Protected Attributes

const MatrixType::Nested m_matrix
const
internal::variable_if_dynamic
< Index, RowFactor > 
m_rowFactor
const
internal::variable_if_dynamic
< Index, ColFactor > 
m_colFactor

Detailed Description

template<typename MatrixType, int RowFactor, int ColFactor>
class Replicate< MatrixType, RowFactor, ColFactor >

Expression of the multiple replication of a matrix or vector.

Parameters:
MatrixType the type of the object we are replicating

This class represents an expression of the multiple replication of a matrix or vector. It is the return type of DenseBase::replicate() and most of the time this is the only way it is used.

See also:
DenseBase::replicate()

Member Typedef Documentation

template<typename MatrixType, int RowFactor, int ColFactor>
typedef internal::dense_xpr_base<Replicate>::type Replicate< MatrixType, RowFactor, ColFactor >::Base

Constructor & Destructor Documentation

template<typename MatrixType, int RowFactor, int ColFactor>
template<typename OriginalMatrixType >
Replicate< MatrixType, RowFactor, ColFactor >::Replicate ( const OriginalMatrixType &  matrix  )  [inline, explicit]
template<typename MatrixType, int RowFactor, int ColFactor>
template<typename OriginalMatrixType >
Replicate< MatrixType, RowFactor, ColFactor >::Replicate ( const OriginalMatrixType &  matrix,
int  rowFactor,
int  colFactor 
) [inline]

Member Function Documentation

template<typename MatrixType, int RowFactor, int ColFactor>
Scalar Replicate< MatrixType, RowFactor, ColFactor >::coeff ( Index  row,
Index  col 
) const [inline]
template<typename MatrixType, int RowFactor, int ColFactor>
Index Replicate< MatrixType, RowFactor, ColFactor >::cols ( void   )  const [inline]
template<typename MatrixType, int RowFactor, int ColFactor>
template<int LoadMode>
PacketScalar Replicate< MatrixType, RowFactor, ColFactor >::packet ( Index  row,
Index  col 
) const [inline]
template<typename MatrixType, int RowFactor, int ColFactor>
Index Replicate< MatrixType, RowFactor, ColFactor >::rows ( void   )  const [inline]

Member Data Documentation

template<typename MatrixType, int RowFactor, int ColFactor>
const internal::variable_if_dynamic<Index, ColFactor> Replicate< MatrixType, RowFactor, ColFactor >::m_colFactor [protected]
template<typename MatrixType, int RowFactor, int ColFactor>
const MatrixType::Nested Replicate< MatrixType, RowFactor, ColFactor >::m_matrix [protected]
template<typename MatrixType, int RowFactor, int ColFactor>
const internal::variable_if_dynamic<Index, RowFactor> Replicate< MatrixType, RowFactor, ColFactor >::m_rowFactor [protected]

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