template <typename number>
-BlockSparseMatrixEZ<number>::BlockSparseMatrixEZ () :
+BlockSparseMatrixEZ<number>::BlockSparseMatrixEZ ()
+ :
row_indices (0),
column_indices (0)
{};
template <typename number>
BlockSparseMatrixEZ<number>::
-BlockSparseMatrixEZ (unsigned int rows, unsigned int cols) :
+BlockSparseMatrixEZ (const unsigned int rows,
+ const unsigned int cols)
+ :
row_indices (rows),
column_indices (cols)
{};
* efficient assembling of the
* matrix.
*/
- void reinit (unsigned int n_rows,
- unsigned int n_columns,
- unsigned int default_row_length = Entry::invalid,
- unsigned int default_increment = Entry::invalid);
+ void reinit (const unsigned int n_rows,
+ const unsigned int n_columns,
+ const unsigned int default_row_length = Entry::invalid,
+ const unsigned int default_increment = Entry::invalid);
/**
* Release all memory and return
template <typename number>
void
-SparseMatrixEZ<number>::reinit(unsigned int n_rows,
- unsigned int n_cols,
- unsigned int default_row_length,
- unsigned int default_increment)
+SparseMatrixEZ<number>::reinit(const unsigned int n_rows,
+ const unsigned int n_cols,
+ const unsigned int default_row_length,
+ const unsigned int default_increment)
{
clear();
if (default_row_length == Entry::invalid)