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

Replicate< MatrixType, RowFactor, ColFactor > Class Template Reference


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()

Definition at line 72 of file Replicate.h.

#include <src/Core/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

Member Typedef Documentation

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

Definition at line 77 of file Replicate.h.


Constructor & Destructor Documentation

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

Definition at line 81 of file Replicate.h.

References Dynamic, eigen_assert, and EIGEN_STATIC_ASSERT.

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

Definition at line 90 of file Replicate.h.

References EIGEN_STATIC_ASSERT.


Member Function Documentation

template<typename MatrixType, int RowFactor, int ColFactor>
Scalar Replicate< MatrixType, RowFactor, ColFactor >::coeff ( Index  row,
Index  col 
) const [inline]

Definition at line 100 of file Replicate.h.

template<typename MatrixType, int RowFactor, int ColFactor>
Index Replicate< MatrixType, RowFactor, ColFactor >::cols ( void   )  const [inline]

Definition at line 98 of file Replicate.h.

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

Definition at line 113 of file Replicate.h.

template<typename MatrixType, int RowFactor, int ColFactor>
Index Replicate< MatrixType, RowFactor, ColFactor >::rows ( void   )  const [inline]

Definition at line 97 of file Replicate.h.


Member Data Documentation

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

Definition at line 129 of file Replicate.h.

template<typename MatrixType, int RowFactor, int ColFactor>
const MatrixType::Nested Replicate< MatrixType, RowFactor, ColFactor >::m_matrix [protected]

Definition at line 127 of file Replicate.h.

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

Definition at line 128 of file Replicate.h.




Page generated by Doxygen 1.7.1 for MRPT 0.9.4 SVN: at Mon Jan 10 23:33:19 UTC 2011