11#ifndef EIGEN_COMMAINITIALIZER_H
12#define EIGEN_COMMAINITIALIZER_H
27template<
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<<)");
147template<
typename Derived>
154template<
typename Derived>
155template<
typename OtherDerived>
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:986
#define EIGEN_EXCEPTION_SPEC(X)
Definition: Macros.h:1436
#define eigen_assert(x)
Definition: Macros.h:1047
Base class for all dense matrices, vectors, and arrays.
Definition: DenseBase.h:47
internal::traits< Derived >::Scalar Scalar
The numeric type of the expression' coefficients, e.g.
Definition: DenseBase.h:66
EIGEN_DEVICE_FUNC CommaInitializer< Derived > operator<<(const Scalar &s)
Convenient operator to set the coefficients of a matrix.
Definition: CommaInitializer.h:148
Namespace containing all symbols from the Eigen library.
Definition: MatrixExponential.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 CommaInitializer(XprType &xpr, const DenseBase< OtherDerived > &other)
Definition: CommaInitializer.h:43
EIGEN_DEVICE_FUNC CommaInitializer & operator,(const Scalar &s)
Definition: CommaInitializer.h:65
EIGEN_DEVICE_FUNC XprType & finished()
Definition: CommaInitializer.h:121
Index m_currentBlockRows
Definition: CommaInitializer.h:131
Index m_col
Definition: CommaInitializer.h:130
EIGEN_DEVICE_FUNC ~CommaInitializer()
Definition: CommaInitializer.h:105
EIGEN_DEVICE_FUNC CommaInitializer & operator,(const DenseBase< OtherDerived > &other)
Definition: CommaInitializer.h:85
EIGEN_DEVICE_FUNC CommaInitializer(XprType &xpr, const Scalar &s)
Definition: CommaInitializer.h:33
Index m_row
Definition: CommaInitializer.h:129