Path Tracer
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Eigen::internal::CompressedStorage< _Scalar, _StorageIndex > Class Template Reference

Public Types

typedef _Scalar Scalar
 
typedef _StorageIndex StorageIndex
 

Public Member Functions

 CompressedStorage (Index size)
 
 CompressedStorage (const CompressedStorage &other)
 
CompressedStorageoperator= (const CompressedStorage &other)
 
void swap (CompressedStorage &other)
 
void reserve (Index size)
 
void squeeze ()
 
void resize (Index size, double reserveSizeFactor=0)
 
void append (const Scalar &v, Index i)
 
Index size () const
 
Index allocatedSize () const
 
void clear ()
 
const Scalar * valuePtr () const
 
Scalar * valuePtr ()
 
const StorageIndex * indexPtr () const
 
StorageIndex * indexPtr ()
 
Scalar & value (Index i)
 
const Scalar & value (Index i) const
 
StorageIndex & index (Index i)
 
const StorageIndex & index (Index i) const
 
Index searchLowerIndex (Index key) const
 
Index searchLowerIndex (Index start, Index end, Index key) const
 
Scalar at (Index key, const Scalar &defaultValue=Scalar(0)) const
 
Scalar atInRange (Index start, Index end, Index key, const Scalar &defaultValue=Scalar(0)) const
 
Scalar & atWithInsertion (Index key, const Scalar &defaultValue=Scalar(0))
 
void moveChunk (Index from, Index to, Index chunkSize)
 
void prune (const Scalar &reference, const RealScalar &epsilon=NumTraits< RealScalar >::dummy_precision())
 

Protected Types

typedef NumTraits< Scalar >::Real RealScalar
 

Protected Member Functions

void reallocate (Index size)
 

Protected Attributes

Scalar * m_values
 
StorageIndex * m_indices
 
Index m_size
 
Index m_allocatedSize
 

Member Function Documentation

◆ at()

template<typename _Scalar , typename _StorageIndex >
Scalar Eigen::internal::CompressedStorage< _Scalar, _StorageIndex >::at ( Index  key,
const Scalar &  defaultValue = Scalar(0) 
) const
inline
Returns
the stored value at index key If the value does not exist, then the value defaultValue is returned without any insertion.

◆ atInRange()

template<typename _Scalar , typename _StorageIndex >
Scalar Eigen::internal::CompressedStorage< _Scalar, _StorageIndex >::atInRange ( Index  start,
Index  end,
Index  key,
const Scalar &  defaultValue = Scalar(0) 
) const
inline

Like at(), but the search is performed in the range [start,end)

◆ atWithInsertion()

template<typename _Scalar , typename _StorageIndex >
Scalar& Eigen::internal::CompressedStorage< _Scalar, _StorageIndex >::atWithInsertion ( Index  key,
const Scalar &  defaultValue = Scalar(0) 
)
inline
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 _StorageIndex >
Index Eigen::internal::CompressedStorage< _Scalar, _StorageIndex >::searchLowerIndex ( Index  key) const
inline
Returns
the largest k such that for all j in [0,k) index[j]<key

◆ searchLowerIndex() [2/2]

template<typename _Scalar , typename _StorageIndex >
Index Eigen::internal::CompressedStorage< _Scalar, _StorageIndex >::searchLowerIndex ( Index  start,
Index  end,
Index  key 
) const
inline
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: