30 typedef typename XprType::Scalar Scalar;
34 : m_xpr(
xpr), m_row(0), m_col(1), m_currentBlockRows(1)
36 m_xpr.coeffRef(0,0) = s;
39 template<
typename OtherDerived>
42 : m_xpr(
xpr), m_row(0), m_col(other.cols()), m_currentBlockRows(other.rows())
44 m_xpr.block(0, 0, other.rows(), other.cols()) = other;
52 : m_xpr(o.m_xpr), m_row(o.m_row), m_col(o.m_col), m_currentBlockRows(o.m_currentBlockRows) {
63 if (m_col==m_xpr.cols())
65 m_row+=m_currentBlockRows;
67 m_currentBlockRows = 1;
68 eigen_assert(m_row<m_xpr.rows()
69 &&
"Too many rows passed to comma initializer (operator<<)");
71 eigen_assert(m_col<m_xpr.cols()
72 &&
"Too many coefficients passed to comma initializer (operator<<)");
73 eigen_assert(m_currentBlockRows==1);
74 m_xpr.coeffRef(m_row, m_col++) = s;
79 template<
typename OtherDerived>
83 if(other.cols()==0 || other.rows()==0)
85 if (m_col==m_xpr.cols())
87 m_row+=m_currentBlockRows;
89 m_currentBlockRows = other.rows();
90 eigen_assert(m_row+m_currentBlockRows<=m_xpr.rows()
91 &&
"Too many rows passed to comma initializer (operator<<)");
93 eigen_assert(m_col<m_xpr.cols()
94 &&
"Too many coefficients passed to comma initializer (operator<<)");
95 eigen_assert(m_currentBlockRows==other.rows());
96 if (OtherDerived::SizeAtCompileTime != Dynamic)
97 m_xpr.template block<OtherDerived::RowsAtCompileTime != Dynamic ? OtherDerived::RowsAtCompileTime : 1,
98 OtherDerived::ColsAtCompileTime != Dynamic ? OtherDerived::ColsAtCompileTime : 1>
99 (m_row, m_col) = other;
101 m_xpr.block(m_row, m_col, other.rows(), other.cols()) = other;
102 m_col += other.cols();
108#if defined VERIFY_RAISES_ASSERT && (!defined EIGEN_NO_ASSERTION_CHECKING) && defined EIGEN_EXCEPTIONS
112 eigen_assert((m_row+m_currentBlockRows) == m_xpr.rows()
113 && m_col == m_xpr.cols()
114 &&
"Too few coefficients passed to comma initializer (operator<<)");
130 Index m_currentBlockRows;