|
typedef _Scalar | Scalar |
|
typedef _Index | Index |
|
|
| CompressedStorage (size_t size) |
|
| CompressedStorage (const CompressedStorage &other) |
|
CompressedStorage & | operator= (const CompressedStorage &other) |
|
void | swap (CompressedStorage &other) |
|
void | reserve (size_t size) |
|
void | squeeze () |
|
void | resize (size_t size, double reserveSizeFactor=0) |
|
void | append (const Scalar &v, Index i) |
|
size_t | size () const |
|
size_t | allocatedSize () const |
|
void | clear () |
|
Scalar & | value (size_t i) |
|
const Scalar & | value (size_t i) const |
|
Index & | index (size_t i) |
|
const Index & | index (size_t i) const |
|
Index | searchLowerIndex (Index key) const |
|
Index | searchLowerIndex (size_t start, size_t end, Index key) const |
|
Scalar | at (Index key, const Scalar &defaultValue=Scalar(0)) const |
|
Scalar | atInRange (size_t start, size_t end, Index key, const Scalar &defaultValue=Scalar(0)) const |
| Like at(), but the search is performed in the range [start,end)
|
|
Scalar & | atWithInsertion (Index key, const Scalar &defaultValue=Scalar(0)) |
|
void | prune (const Scalar &reference, const RealScalar &epsilon=NumTraits< RealScalar >::dummy_precision()) |
|
|
void | reallocate (size_t size) |
|
|
Scalar * | m_values |
|
Index * | m_indices |
|
size_t | m_size |
|
size_t | m_allocatedSize |
|
§ at()
template<typename _Scalar, typename _Index>
- Returns
- the stored value at index key If the value does not exist, then the value defaultValue is returned without any insertion.
§ atWithInsertion()
template<typename _Scalar, typename _Index>
- Returns
- a reference to the value at index key If the value does not exist, then the value defaultValue is inserted such that the keys are sorted.
§ searchLowerIndex() [1/2]
template<typename _Scalar, typename _Index>
- Returns
- the largest
k
such that for all j
in [0,k) index[j
]<key
§ searchLowerIndex() [2/2]
template<typename _Scalar, typename _Index>
- Returns
- the largest
k
in [start,end) such that for all j
in [start,k) index[j
]<key
The documentation for this class was generated from the following file: