diff --git a/doc/matrix_sparse.htm b/doc/matrix_sparse.htm index 24722296..e7864818 100644 --- a/doc/matrix_sparse.htm +++ b/doc/matrix_sparse.htm @@ -213,13 +213,13 @@ through a scalar. Swaps the contents of the sparse matrices. -void insert (size_type i, size_type j, const_reference +true_refrence insert_element (size_type i, size_type j, const_reference t) Inserts the value t at the j-th -element of the i-th row. +element of the i-th row. Duplicates elements are not allowed. -void erase (size_type i, size_type j) +void erase_element (size_type i, size_type j) Erases the value at the j-th element of the i-th row. @@ -531,13 +531,13 @@ through a scalar. Swaps the contents of the compressed matrices. -void insert (size_type i, size_type j, const_reference +true_reference insert_element (size_type i, size_type j, const_reference t) Inserts the value t at the j-th -element of the i-th row. +element of the i-th row. Duplicates elements are not allowed. -void erase (size_type i, size_type j) +void erase_element (size_type i, size_type j) Erases the value at the j-th element of the i-th row. @@ -852,13 +852,19 @@ through a scalar. Swaps the contents of the coordinate matrices. -void insert (size_type i, size_type j, const_reference +true_reference insert_element (size_type i, size_type j, const_reference t) Inserts the value t at the j-th -element of the i-th row. +element of the i-th row. Duplicates elements are not allowed. -void erase (size_type i, size_type j) +void append_element (size_type i, size_type j, const_reference t) +Appends the value t at the j-th element of the i-th row. +Duplicate elements can be appended to a coordinate_matrix. They are merged into a single +arithmetically summed element by the sort function. + + +void erase_element (size_type i, size_type j) Erases the value at the j-th element of the i-th row. diff --git a/doc/vector_sparse.htm b/doc/vector_sparse.htm index ac1b4167..98d4d464 100644 --- a/doc/vector_sparse.htm +++ b/doc/vector_sparse.htm @@ -197,12 +197,12 @@ through a scalar. Swaps the contents of the sparse vectors. -void insert (size_type i, const_reference t) +true_reference insert_element (size_type i, const_reference t) Inserts the value t at the i-th -element. +element. Duplicates elements are not allowed. -void erase (size_type i) +void erase_element (size_type i) Erases the value at the i-th element. @@ -454,12 +454,12 @@ through a scalar. Swaps the contents of the compressed vectors. -void insert (size_type i, const_reference t) +true_reference insert_element (size_type i, const_reference t) Inserts the value t at the i-th -element. +element. Duplicates elements are not allowed. -void erase (size_type i) +void erase_element (size_type i) Erases the value at the i-th element. @@ -714,12 +714,18 @@ through a scalar. Swaps the contents of the coordinate vectors. -void insert (size_type i, const_reference t) +true_reference insert_element (size_type i, const_reference t) Inserts the value t at the i-th -element. +element. Duplicates elements are not allowed. -void erase (size_type i) +void append_element (size_type i, size_type j, const_reference t) +Appends the value t at the i-th element. +Duplicate elements can be appended to a coordinate_vector. They are merged into a single +arithmetically summed element by the sort function. + + +void erase_element (size_type i) Erases the value at the i-th element.