STORM_LOG_THROW(rowCount<=initialRowCount,storm::exceptions::InvalidStateException,"Expected not more than "<<initialRowCount<<" rows, but got "<<rowCount<<".");
STORM_LOG_THROW(rowCount<=initialRowCount,storm::exceptions::InvalidStateException,"Expected not more than "<<initialRowCount<<" rows, but got "<<rowCount<<".");
rowCount=std::max(rowCount,initialRowCount);
rowCount=std::max(rowCount,initialRowCount);
@ -203,12 +214,17 @@ namespace storm {
rowIndications.push_back(currentEntryCount);
rowIndications.push_back(currentEntryCount);
}
}
// If there are no rows, we need to erase the start index of the current (non-existing) row.
if(rowCount==0){
rowIndications.pop_back();
}
// We put a sentinel element at the last position of the row indices array. This eases iteration work,
// We put a sentinel element at the last position of the row indices array. This eases iteration work,
// as now the indices of row i are always between rowIndications[i] and rowIndications[i + 1], also for
// as now the indices of row i are always between rowIndications[i] and rowIndications[i + 1], also for
STORM_LOG_THROW(columnCount<=initialColumnCount,storm::exceptions::InvalidStateException,"Expected not more than "<<initialColumnCount<<" columns, but got "<<columnCount<<".");
STORM_LOG_THROW(columnCount<=initialColumnCount,storm::exceptions::InvalidStateException,"Expected not more than "<<initialColumnCount<<" columns, but got "<<columnCount<<".");