10 #ifndef EIGEN_COMPRESSED_STORAGE_H 11 #define EIGEN_COMPRESSED_STORAGE_H 21 template<
typename _Scalar,
typename _StorageIndex>
106 m_indices[id] = internal::convert_index<StorageIndex>(i);
135 Index mid = (end+start)>>1;
163 else if (end>start && key==
m_indices[end-1])
204 m_indices[id] = internal::convert_index<StorageIndex>(key);
230 #ifdef EIGEN_SPARSE_COMPRESSED_STORAGE_REALLOCATE_PLUGIN 231 EIGEN_SPARSE_COMPRESSED_STORAGE_REALLOCATE_PLUGIN
258 #endif // EIGEN_COMPRESSED_STORAGE_H void reallocate(Index size)
EIGEN_DEVICE_FUNC bool isMuchSmallerThan(const Scalar &x, const OtherScalar &y, const typename NumTraits< Scalar >::Real &precision=NumTraits< Scalar >::dummy_precision())
StorageIndex & index(Index i)
CompressedStorage & operator=(const CompressedStorage &other)
const StorageIndex & index(Index i) const
const Scalar * valuePtr() const
const StorageIndex * indexPtr() const
StorageIndex * indexPtr()
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
const Scalar & value(Index i) const
CompressedStorage(Index size)
EIGEN_DEVICE_FUNC void smart_copy(const T *start, const T *end, T *target)
int EIGEN_BLAS_FUNC() swap(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy)
void append(const Scalar &v, Index i)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
CompressedStorage(const CompressedStorage &other)
_StorageIndex StorageIndex
void resize(Index size, double reserveSizeFactor=0)
Scalar atInRange(Index start, Index end, Index key, const Scalar &defaultValue=Scalar(0)) const
Scalar & atWithInsertion(Index key, const Scalar &defaultValue=Scalar(0))
void prune(const Scalar &reference, const RealScalar &epsilon=NumTraits< RealScalar >::dummy_precision())
Scalar at(Index key, const Scalar &defaultValue=Scalar(0)) const
NumTraits< Scalar >::Real RealScalar
EIGEN_DEVICE_FUNC void throw_std_bad_alloc()
#define eigen_internal_assert(x)
Index allocatedSize() const
Index searchLowerIndex(Index start, Index end, Index key) const
void smart_memmove(const T *start, const T *end, T *target)
void swap(CompressedStorage &other)
Index searchLowerIndex(Index key) const