10 #ifndef EIGEN_REPLICATE_H
11 #define EIGEN_REPLICATE_H
16 template<
typename MatrixType,
int RowFactor,
int ColFactor>
20 typedef typename MatrixType::Scalar
Scalar;
26 RowsAtCompileTime = RowFactor==
Dynamic || int(MatrixType::RowsAtCompileTime)==
Dynamic
28 : RowFactor * MatrixType::RowsAtCompileTime,
29 ColsAtCompileTime = ColFactor==
Dynamic || int(MatrixType::ColsAtCompileTime)==
Dynamic
31 : ColFactor * MatrixType::ColsAtCompileTime,
33 MaxRowsAtCompileTime = RowsAtCompileTime,
34 MaxColsAtCompileTime = ColsAtCompileTime,
35 IsRowMajor = MaxRowsAtCompileTime==1 && MaxColsAtCompileTime!=1 ? 1
36 : MaxColsAtCompileTime==1 && MaxRowsAtCompileTime!=1 ? 0
61 template<
typename MatrixType,
int RowFactor,
int ColFactor>
class Replicate
72 template<typename OriginalMatrixType>
78 THE_MATRIX_OR_EXPRESSION_THAT_YOU_PASSED_DOES_NOT_HAVE_THE_EXPECTED_TYPE)
82 template<
typename OriginalMatrixType>
88 THE_MATRIX_OR_EXPRESSION_THAT_YOU_PASSED_DOES_NOT_HAVE_THE_EXPECTED_TYPE)
116 template<
typename Derived>
117 template<
int RowFactor,
int ColFactor>
132 template<
typename ExpressionType,
int Direction>
#define EIGEN_CONSTEXPR
Definition: Macros.h:787
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
Definition: Macros.h:1283
#define eigen_assert(x)
Definition: Macros.h:1037
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition: StaticAssert.h:127
EIGEN_DEVICE_FUNC const Replicate< Derived, RowFactor, ColFactor > replicate() const
Definition: Replicate.h:119
Expression of the multiple replication of a matrix or vector.
Definition: Replicate.h:63
EIGEN_DEVICE_FUNC const _MatrixTypeNested & nestedExpression() const
Definition: Replicate.h:97
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const
Definition: Replicate.h:92
internal::traits< Replicate >::MatrixTypeNested MatrixTypeNested
Definition: Replicate.h:64
internal::remove_all< MatrixType >::type NestedExpression
Definition: Replicate.h:70
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const
Definition: Replicate.h:94
internal::dense_xpr_base< Replicate >::type Base
Definition: Replicate.h:68
const internal::variable_if_dynamic< Index, ColFactor > m_colFactor
Definition: Replicate.h:105
internal::traits< Replicate >::_MatrixTypeNested _MatrixTypeNested
Definition: Replicate.h:65
const internal::variable_if_dynamic< Index, RowFactor > m_rowFactor
Definition: Replicate.h:104
EIGEN_DEVICE_FUNC Replicate(const OriginalMatrixType &matrix, Index rowFactor, Index colFactor)
Definition: Replicate.h:84
MatrixTypeNested m_matrix
Definition: Replicate.h:103
Eigen::Index Index
Definition: VectorwiseOp.h:192
EIGEN_DEVICE_FUNC const ReplicateReturnType replicate(Index factor) const
Definition: Replicate.h:134
Replicate< ExpressionType,(isVertical?Dynamic:1),(isHorizontal?Dynamic:1)> ReplicateReturnType
Definition: VectorwiseOp.h:552
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR T value()
Definition: XprHelper.h:135
@ Horizontal
Definition: Constants.h:267
@ Vertical
Definition: Constants.h:264
const unsigned int RowMajorBit
Definition: Constants.h:66
Namespace containing all symbols from the Eigen library.
Definition: LDLT.h:16
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
const int Dynamic
Definition: Constants.h:22
type
The type the bitset is encoded with.
Definition: bitset.hpp:44
Flags
Special flags for archives.
Definition: cereal.hpp:185
Definition: document.h:416
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1282
Definition: XprHelper.h:484
Definition: XprHelper.h:417
T type
Definition: Meta.h:121
T type
Definition: Meta.h:114
ref_selector< MatrixType >::type MatrixTypeNested
Definition: Replicate.h:23
remove_reference< MatrixTypeNested >::type _MatrixTypeNested
Definition: Replicate.h:24
traits< MatrixType >::XprKind XprKind
Definition: Replicate.h:22
traits< MatrixType >::StorageKind StorageKind
Definition: Replicate.h:21
MatrixType::Scalar Scalar
Definition: Replicate.h:20
Definition: ForwardDeclarations.h:17
#define const
Definition: zconf.h:233