* properly is essential for an
* efficient assembling of the
* matrix.
+ *
+ * The default values are
+ * @p{default_row_length=5},
+ * @p{default_increment=4}.
*/
explicit SparseMatrixEZ (const unsigned int n_rows,
const unsigned int n_columns,
* properly is essential for an
* efficient assembling of the
* matrix.
+ *
+ * The default values are
+ * @p{default_row_length=5},
+ * @p{default_increment=4}.
*/
void reinit (const unsigned int n_rows,
const unsigned int n_columns,
* Set the element @p{(i,j)} to
* @p{value}. Allocates the entry
* if it does not exist. Filters
- * out zero automatically.
+ * out zeroes automatically.
*/
void set (const unsigned int i, const unsigned int j,
const number value);
* Add @p{value} to the element
* @p{(i,j)}. Allocates the entry
* if it does not exist. Filters
- * out zero automatically.
+ * out zeroes automatically.
*/
void add (const unsigned int i, const unsigned int j,
const number value);
unsigned int default_increment)
{
clear();
+
+ // replace (invalid) default values
+ // by true defaults; note that
+ // these defaults are also
+ // documented in the docs of this
+ // function as well as in the docs
+ // of the constructor!
if (default_row_length == Entry::invalid)
default_row_length = 5;
if (default_increment == Entry::invalid)