Public Member Functions | |
| Scalar | at (Index key, Scalar defaultValue=Scalar(0)) const |
| Scalar | atInRange (size_t start, size_t end, Index key, Scalar defaultValue=Scalar(0)) const |
| Scalar & | atWithInsertion (Index key, Scalar defaultValue=Scalar(0)) |
| Index | searchLowerIndex (Index key) const |
| Index | searchLowerIndex (size_t start, size_t end, Index key) const |
Stores a sparse set of values as a list of values and a list of indices.
| Scalar at | ( | Index | key, |
| Scalar | defaultValue = Scalar(0) |
||
| ) | const [inline] |
| Scalar atInRange | ( | size_t | start, |
| size_t | end, | ||
| Index | key, | ||
| Scalar | defaultValue = Scalar(0) |
||
| ) | const [inline] |
Like at(), but the search is performed in the range [start,end)
| Scalar& atWithInsertion | ( | Index | key, |
| Scalar | defaultValue = Scalar(0) |
||
| ) | [inline] |
| Index searchLowerIndex | ( | Index | key | ) | const [inline] |
k such that for all j in [0,k) index[j]<key | Index searchLowerIndex | ( | size_t | start, |
| size_t | end, | ||
| Index | key | ||
| ) | const [inline] |
k in [start,end) such that for all j in [start,k) index[j]<key
1.7.6.1