Expression of the multiple replication of a matrix or vector. More...
#include <Replicate.h>
Inherits type< Replicate< MatrixType, RowFactor, ColFactor > >.
Public Types | |
typedef internal::dense_xpr_base < Replicate >::type | Base |
Public Member Functions | |
Scalar | coeff (Index row, Index col) const |
Index | cols () const |
const _MatrixTypeNested & | nestedExpression () const |
template<int LoadMode> | |
PacketScalar | packet (Index row, Index col) const |
template<typename OriginalMatrixType > | |
Replicate (const OriginalMatrixType &matrix) | |
template<typename OriginalMatrixType > | |
Replicate (const OriginalMatrixType &matrix, Index rowFactor, Index colFactor) | |
Index | rows () const |
Protected Attributes | |
const internal::variable_if_dynamic < Index, ColFactor > | m_colFactor |
MatrixTypeNested | m_matrix |
const internal::variable_if_dynamic < Index, RowFactor > | m_rowFactor |
Expression of the multiple replication of a matrix or vector.
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.
Replicate | ( | const OriginalMatrixType & | matrix | ) | [inline, explicit] |
References Eigen::Dynamic, and EIGEN_STATIC_ASSERT.
Replicate | ( | const OriginalMatrixType & | matrix, |
Index | rowFactor, | ||
Index | colFactor | ||
) | [inline] |
References EIGEN_STATIC_ASSERT.
Scalar coeff | ( | Index | row, |
Index | col | ||
) | const [inline] |
Index cols | ( | void | ) | const [inline] |
const _MatrixTypeNested& nestedExpression | ( | ) | const [inline] |
PacketScalar packet | ( | Index | row, |
Index | col | ||
) | const [inline] |
Index rows | ( | void | ) | const [inline] |
const internal::variable_if_dynamic<Index, ColFactor> m_colFactor [protected] |
MatrixTypeNested m_matrix [protected] |
const internal::variable_if_dynamic<Index, RowFactor> m_rowFactor [protected] |