/**
* Exception
*/
- DeclException1 (ExcInvalidIndex1,
- int,
- << "The index " << arg1 << " is not in the allowed range.");
- /**
- * Exception
- */
DeclException0 (ExcDifferentChunkSparsityPatterns);
/**
* Exception
{
Assert (cols != 0, ExcNotInitialized());
Assert (m() == n(), ExcNotQuadratic());
- Assert (i<m(), ExcInvalidIndex1(i));
+ AssertIndexRange(i, m());
// Use that the first element in each row of a quadratic matrix is the main
// diagonal of the chunk sparsity pattern
/**
* Exception
*/
- DeclException1 (ExcInvalidIndex1,
- int,
- << "The index " << arg1 << " is not in the allowed range.");
- /**
- * Exception
- */
DeclExceptionMsg (ExcDifferentSparsityPatterns,
"When copying one sparse matrix into another, "
"or when adding one sparse matrix to another, "
{
Assert (cols != 0, ExcNotInitialized());
Assert (m() == n(), ExcNotQuadratic());
- Assert (i<m(), ExcInvalidIndex1(i));
+ AssertIndexRange(i, m());
// Use that the first element in each row of a quadratic matrix is the main
// diagonal
{
Assert (cols != 0, ExcNotInitialized());
Assert (m() == n(), ExcNotQuadratic());
- Assert (i<m(), ExcInvalidIndex1(i));
+ AssertIndexRange(i, m());
// Use that the first element in each row of a quadratic matrix is the main
// diagonal
const bool elide_zero_values)
{
Assert (cols != 0, ExcNotInitialized());
- Assert (row < m(), ExcInvalidIndex1(row));
+ AssertIndexRange(row, m());
// First, search all the indices to find
// out which values we actually need to