Logo Search packages:      
Sourcecode: eigen3 version File versions  Download package

Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes

CompressedStorage< _Scalar, _Index > Class Template Reference

#include <CompressedStorage.h>

Inheritance diagram for CompressedStorage< _Scalar, _Index >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef _Index Index
typedef _Scalar Scalar

Public Member Functions

size_t allocatedSize () const
void append (const Scalar &v, Index i)
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))
void clear ()
 CompressedStorage (size_t size)
 CompressedStorage (const CompressedStorage &other)
Index & index (size_t i)
const Index & index (size_t i) const
CompressedStorageoperator= (const CompressedStorage &other)
void prune (Scalar reference, RealScalar epsilon=NumTraits< RealScalar >::dummy_precision())
void reserve (size_t size)
void resize (size_t size, float reserveSizeFactor=0)
Index searchLowerIndex (Index key) const
Index searchLowerIndex (size_t start, size_t end, Index key) const
size_t size () const
void squeeze ()
void swap (CompressedStorage &other)
Scalar & value (size_t i)
const Scalar & value (size_t i) const

Static Public Member Functions

static CompressedStorage Map (Index *indices, Scalar *values, size_t size)

Protected Types

typedef NumTraits< Scalar >::Real RealScalar

Protected Member Functions

void reallocate (size_t size)

Protected Attributes

size_t m_allocatedSize
Index * m_indices
size_t m_size
Scalar * m_values

Detailed Description

template<typename _Scalar, typename _Index>
class CompressedStorage< _Scalar, _Index >

Stores a sparse set of values as a list of values and a list of indices.

Definition at line 32 of file CompressedStorage.h.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index