11 #ifndef EIGEN_COMMAINITIALIZER_H
12 #define EIGEN_COMMAINITIALIZER_H
27 template<
typename XprType>
30 typedef typename XprType::Scalar
Scalar;
37 &&
"Cannot comma-initialize a 0x0 matrix (operator<<)");
38 m_xpr.coeffRef(0,0) = s;
41 template<
typename OtherDerived>
47 &&
"Cannot comma-initialize a 0x0 matrix (operator<<)");
48 m_xpr.block(0, 0, other.rows(), other.cols()) = other;
73 &&
"Too many rows passed to comma initializer (operator<<)");
76 &&
"Too many coefficients passed to comma initializer (operator<<)");
83 template<
typename OtherDerived>
93 &&
"Too many rows passed to comma initializer (operator<<)");
96 &&
"Too many coefficients passed to comma initializer (operator<<)");
98 m_xpr.template block<OtherDerived::RowsAtCompileTime, OtherDerived::ColsAtCompileTime>
99 (
m_row,
m_col, other.rows(), other.cols()) = other;
100 m_col += other.cols();
106 #if defined VERIFY_RAISES_ASSERT && (!defined EIGEN_NO_ASSERTION_CHECKING) && defined EIGEN_EXCEPTIONS
124 &&
"Too few coefficients passed to comma initializer (operator<<)");
147 template<
typename Derived>
154 template<
typename Derived>
155 template<
typename OtherDerived>
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
#define EIGEN_EXCEPTION_SPEC(X)
Definition: Macros.h:1426
#define eigen_assert(x)
Definition: Macros.h:1037
Base class for all dense matrices, vectors, and arrays.
Definition: DenseBase.h:47
internal::traits< Derived >::Scalar Scalar
Definition: DenseBase.h:66
EIGEN_DEVICE_FUNC CommaInitializer< Derived > operator<<(const Scalar &s)
Definition: CommaInitializer.h:148
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
Helper class used by the comma initializer operator.
Definition: CommaInitializer.h:29
EIGEN_DEVICE_FUNC CommaInitializer(const CommaInitializer &o)
Definition: CommaInitializer.h:55
XprType & m_xpr
Definition: CommaInitializer.h:128
XprType::Scalar Scalar
Definition: CommaInitializer.h:30
EIGEN_DEVICE_FUNC XprType & finished()
Definition: CommaInitializer.h:121
EIGEN_DEVICE_FUNC CommaInitializer(XprType &xpr, const DenseBase< OtherDerived > &other)
Definition: CommaInitializer.h:43
EIGEN_DEVICE_FUNC CommaInitializer & operator,(const DenseBase< OtherDerived > &other)
Definition: CommaInitializer.h:85
Index m_currentBlockRows
Definition: CommaInitializer.h:131
EIGEN_DEVICE_FUNC CommaInitializer & operator,(const Scalar &s)
Definition: CommaInitializer.h:65
Index m_col
Definition: CommaInitializer.h:130
EIGEN_DEVICE_FUNC ~CommaInitializer()
Definition: CommaInitializer.h:105
EIGEN_DEVICE_FUNC CommaInitializer(XprType &xpr, const Scalar &s)
Definition: CommaInitializer.h:33
Index m_row
Definition: CommaInitializer.h:129