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);
204 m_indices[id] = internal::convert_index<StorageIndex>(key);
213 if(to>from && from+chunkSize>to)
230 for (
Index i=0; i<n; ++i)
246 #ifdef EIGEN_SPARSE_COMPRESSED_STORAGE_REALLOCATE_PLUGIN
247 EIGEN_SPARSE_COMPRESSED_STORAGE_REALLOCATE_PLUGIN
#define eigen_internal_assert(x)
Definition: Macros.h:1043
Definition: CompressedStorage.h:23
StorageIndex & index(Index i)
Definition: CompressedStorage.h:121
Scalar at(Index key, const Scalar &defaultValue=Scalar(0)) const
Definition: CompressedStorage.h:146
~CompressedStorage()
Definition: CompressedStorage.h:70
void reserve(Index size)
Definition: CompressedStorage.h:76
Index searchLowerIndex(Index start, Index end, Index key) const
Definition: CompressedStorage.h:131
CompressedStorage(Index size)
Definition: CompressedStorage.h:39
Index size() const
Definition: CompressedStorage.h:109
StorageIndex * m_indices
Definition: CompressedStorage.h:264
void moveChunk(Index from, Index to, Index chunkSize)
Definition: CompressedStorage.h:210
CompressedStorage(const CompressedStorage &other)
Definition: CompressedStorage.h:45
Index allocatedSize() const
Definition: CompressedStorage.h:110
_Scalar Scalar
Definition: CompressedStorage.h:26
Scalar atInRange(Index start, Index end, Index key, const Scalar &defaultValue=Scalar(0)) const
Definition: CompressedStorage.h:159
CompressedStorage & operator=(const CompressedStorage &other)
Definition: CompressedStorage.h:51
StorageIndex * indexPtr()
Definition: CompressedStorage.h:116
const StorageIndex & index(Index i) const
Definition: CompressedStorage.h:122
void clear()
Definition: CompressedStorage.h:111
Scalar & atWithInsertion(Index key, const Scalar &defaultValue=Scalar(0))
Definition: CompressedStorage.h:174
void append(const Scalar &v, Index i)
Definition: CompressedStorage.h:101
Index m_size
Definition: CompressedStorage.h:265
const Scalar * valuePtr() const
Definition: CompressedStorage.h:113
Index m_allocatedSize
Definition: CompressedStorage.h:266
const StorageIndex * indexPtr() const
Definition: CompressedStorage.h:115
void squeeze()
Definition: CompressedStorage.h:83
void resize(Index size, double reserveSizeFactor=0)
Definition: CompressedStorage.h:89
void swap(CompressedStorage &other)
Definition: CompressedStorage.h:62
void prune(const Scalar &reference, const RealScalar &epsilon=NumTraits< RealScalar >::dummy_precision())
Definition: CompressedStorage.h:226
Scalar * m_values
Definition: CompressedStorage.h:263
NumTraits< Scalar >::Real RealScalar
Definition: CompressedStorage.h:31
_StorageIndex StorageIndex
Definition: CompressedStorage.h:27
Scalar * valuePtr()
Definition: CompressedStorage.h:114
Scalar & value(Index i)
Definition: CompressedStorage.h:118
Index searchLowerIndex(Index key) const
Definition: CompressedStorage.h:125
void reallocate(Index size)
Definition: CompressedStorage.h:244
const Scalar & value(Index i) const
Definition: CompressedStorage.h:119
CompressedStorage()
Definition: CompressedStorage.h:35
T *& ptr()
Definition: Memory.h:704
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16() min(const bfloat16 &a, const bfloat16 &b)
Definition: BFloat16.h:571
EIGEN_DEVICE_FUNC bool isMuchSmallerThan(const Scalar &x, const OtherScalar &y, const typename NumTraits< Scalar >::Real &precision=NumTraits< Scalar >::dummy_precision())
Definition: MathFunctions.h:1940
EIGEN_DEVICE_FUNC void throw_std_bad_alloc()
Definition: Memory.h:67
EIGEN_DEVICE_FUNC void smart_copy(const T *start, const T *end, T *target)
Definition: Memory.h:515
void smart_memmove(const T *start, const T *end, T *target)
Definition: Memory.h:539
static EIGEN_DEPRECATED const end_t end
Definition: IndexedViewHelper.h:181
Namespace containing all symbols from the Eigen library.
Definition: LDLT.h:16
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
Definition: document.h:416
NLOHMANN_BASIC_JSON_TPL_DECLARATION void swap(nlohmann::NLOHMANN_BASIC_JSON_TPL &j1, nlohmann::NLOHMANN_BASIC_JSON_TPL &j2) noexcept(//NOLINT(readability-inconsistent-declaration-parameter-name, cert-dcl58-cpp) is_nothrow_move_constructible< nlohmann::NLOHMANN_BASIC_JSON_TPL >::value &&//NOLINT(misc-redundant-expression, cppcoreguidelines-noexcept-swap, performance-noexcept-swap) is_nothrow_move_assignable< nlohmann::NLOHMANN_BASIC_JSON_TPL >::value)
exchanges the values of two JSON objects
Definition: json.hpp:25399
const GenericPointer< typename T::ValueType > T2 defaultValue
Definition: pointer.h:1181
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
Definition: NumTraits.h:233