From 35bce20954581415a9e5057cc24f6e4769ef78f5 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 12 Mar 2008 18:10:52 +0000 Subject: Removed Column and Row in favor of Block --- Eigen/src/Core/CommaInitializer.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'Eigen/src/Core/CommaInitializer.h') diff --git a/Eigen/src/Core/CommaInitializer.h b/Eigen/src/Core/CommaInitializer.h index 5456eb7c6..c7a292437 100644 --- a/Eigen/src/Core/CommaInitializer.h +++ b/Eigen/src/Core/CommaInitializer.h @@ -52,8 +52,11 @@ struct MatrixBase::CommaInitializer m_row+=m_currentBlockRows; m_col = 0; m_currentBlockRows = 1; + assert(m_row::CommaInitializer m_row+=m_currentBlockRows; m_col = 0; m_currentBlockRows = other.rows(); + assert(m_row+m_currentBlockRows<=m_matrix.rows() + && "Too many rows passed to MatrixBase::operator<<"); } - assert(m_col0 && OtherDerived::ColsAtCompileTime>0) + m_matrix.block< (OtherDerived::RowsAtCompileTime>0?OtherDerived::RowsAtCompileTime:1) , + (OtherDerived::ColsAtCompileTime>0?OtherDerived::ColsAtCompileTime:1) >(m_row, m_col) = other; + else + m_matrix.block(m_row, m_col, other.rows(), other.cols()) = other; m_col += other.cols(); return *this; } -- cgit v1.2.3