Name |
Expression |
Preconditions |
Semantics |
Postconditions |
Insert |
v.insert(i,a,f) |
|
The functor f describes what needs to happen with duplicates. E.g. f can be std::plus |
|
Sort |
a.sort(f) |
|
The functor f describes what needs to happen with duplicates. E.g. f can be std::plus |
a.is_sorted() |
Check if sorted |
a.is_sorted() |
|
|
|
Equality
| v==w
|
| Although SparseVector is a refinement of EqualityComparable, extra semantics is added here: the vectors can only be equal if the structures are also equal.
|
|
InEquality
| v!=w
|
| Although SparseVector is a refinement of EqualityComparable, extra semantics is added here: the vectors can only be equal if the structures are also equal.
|
|