11 #ifndef EIGEN_COMMAINITIALIZER_H
12 #define EIGEN_COMMAINITIALIZER_H
29 template<
typename XprType>
32 typedef typename XprType::Scalar
Scalar;
39 &&
"Cannot comma-initialize a 0x0 matrix (operator<<)");
40 m_xpr.coeffRef(0,0) = s;
43 template<
typename OtherDerived>
49 &&
"Cannot comma-initialize a 0x0 matrix (operator<<)");
50 m_xpr.template block<OtherDerived::RowsAtCompileTime, OtherDerived::ColsAtCompileTime>(0, 0, other.
rows(), other.
cols()) = other;
75 &&
"Too many rows passed to comma initializer (operator<<)");
78 &&
"Too many coefficients passed to comma initializer (operator<<)");
85 template<
typename OtherDerived>
95 &&
"Too many rows passed to comma initializer (operator<<)");
98 &&
"Too many coefficients passed to comma initializer (operator<<)");
100 m_xpr.template block<OtherDerived::RowsAtCompileTime, OtherDerived::ColsAtCompileTime>
108 #if defined VERIFY_RAISES_ASSERT && (!defined EIGEN_NO_ASSERTION_CHECKING) && defined EIGEN_EXCEPTIONS
126 &&
"Too few coefficients passed to comma initializer (operator<<)");
149 template<
typename Derived>
156 template<
typename Derived>
157 template<
typename OtherDerived>
161 return CommaInitializer<Derived>(*
static_cast<Derived *
>(
this), other);
#define EIGEN_DEVICE_FUNC
#define EIGEN_EXCEPTION_SPEC(X)
Base class for all dense matrices, vectors, and arrays.
CommaInitializer< Derived > operator<<(const Scalar &s)
EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Helper class used by the comma initializer operator.
CommaInitializer & operator,(const DenseBase< OtherDerived > &other)
CommaInitializer(const CommaInitializer &o)
CommaInitializer(XprType &xpr, const Scalar &s)
CommaInitializer(XprType &xpr, const DenseBase< OtherDerived > &other)
CommaInitializer & operator,(const Scalar &s)