11 #ifndef EIGEN_COMMAINITIALIZER_H
12 #define EIGEN_COMMAINITIALIZER_H
30 template <
typename XprType>
40 template <
typename OtherDerived>
44 "Cannot comma-initialize a 0x0 matrix (operator<<)");
45 m_xpr.template block<OtherDerived::RowsAtCompileTime, OtherDerived::ColsAtCompileTime>(0, 0, other.rows(),
46 other.cols()) = other;
75 template <
typename OtherDerived>
82 "Too many rows passed to comma initializer (operator<<)");
85 "Too many coefficients passed to comma initializer (operator<<)");
87 m_xpr.template block<OtherDerived::RowsAtCompileTime, OtherDerived::ColsAtCompileTime>(
m_row,
m_col, other.rows(),
88 other.cols()) = other;
89 m_col += other.cols();
94 #if defined VERIFY_RAISES_ASSERT && (!defined EIGEN_NO_ASSERTION_CHECKING) && defined EIGEN_EXCEPTIONS
110 "Too few coefficients passed to comma initializer (operator<<)");
134 template <
typename Derived>
140 template <
typename Derived>
141 template <
typename OtherDerived>
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:892
#define EIGEN_EXCEPTION_SPEC(X)
Definition: Macros.h:1270
#define eigen_assert(x)
Definition: Macros.h:910
int rows
Definition: Tutorial_commainit_02.cpp:1
int cols
Definition: Tutorial_commainit_02.cpp:1
SCALAR Scalar
Definition: bench_gemm.cpp:45
Base class for all dense matrices, vectors, and arrays.
Definition: DenseBase.h:44
internal::traits< Derived >::Scalar Scalar
Definition: DenseBase.h:62
EIGEN_DEVICE_FUNC CommaInitializer< Derived > operator<<(const Scalar &s)
Definition: CommaInitializer.h:135
RealScalar s
Definition: level1_cplx_impl.h:130
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
CwiseBinaryOp< internal::scalar_sum_op< double, double >, const CpyMatrixXd, const CpyMatrixXd > XprType
Definition: nestbyvalue.cpp:15
Helper class used by the comma initializer operator.
Definition: CommaInitializer.h:31
EIGEN_DEVICE_FUNC CommaInitializer(const CommaInitializer &o)
Definition: CommaInitializer.h:52
XprType & m_xpr
Definition: CommaInitializer.h:114
XprType::Scalar Scalar
Definition: CommaInitializer.h:32
EIGEN_DEVICE_FUNC XprType & finished()
Definition: CommaInitializer.h:108
EIGEN_DEVICE_FUNC CommaInitializer(XprType &xpr, const DenseBase< OtherDerived > &other)
Definition: CommaInitializer.h:41
EIGEN_DEVICE_FUNC CommaInitializer & operator,(const DenseBase< OtherDerived > &other)
Definition: CommaInitializer.h:76
Index m_currentBlockRows
Definition: CommaInitializer.h:117
EIGEN_DEVICE_FUNC CommaInitializer & operator,(const Scalar &s)
Definition: CommaInitializer.h:61
Index m_col
Definition: CommaInitializer.h:116
EIGEN_DEVICE_FUNC ~CommaInitializer()
Definition: CommaInitializer.h:93
EIGEN_DEVICE_FUNC CommaInitializer(XprType &xpr, const Scalar &s)
Definition: CommaInitializer.h:34
Index m_row
Definition: CommaInitializer.h:115