10 #ifndef EIGEN_COMPRESSED_STORAGE_H
11 #define EIGEN_COMPRESSED_STORAGE_H
24 template <
typename Scalar_,
typename StorageIndex_>
44 if (other.
size() > 0) {
75 using SmallerIndexType =
91 m_indices[id] = internal::convert_index<StorageIndex>(
i);
172 m_indices[id] = internal::convert_index<StorageIndex>(key);
186 #ifdef EIGEN_SPARSE_COMPRESSED_STORAGE_REALLOCATE_PLUGIN
Array< int, Dynamic, 1 > v
Definition: Array_initializer_list_vector_cxx11.cpp:1
int i
Definition: BiCGSTAB_step_by_step.cpp:9
#define eigen_internal_assert(x)
Definition: Macros.h:916
Definition: CompressedStorage.h:25
void squeeze()
Definition: CompressedStorage.h:68
Scalar & value(Index i)
Definition: CompressedStorage.h:103
StorageIndex & index(Index i)
Definition: CompressedStorage.h:112
~CompressedStorage()
Definition: CompressedStorage.h:58
const StorageIndex * indexPtr() const
Definition: CompressedStorage.h:100
NumTraits< Scalar >::Real RealScalar
Definition: CompressedStorage.h:31
Index m_size
Definition: CompressedStorage.h:198
StorageIndex * m_indices
Definition: CompressedStorage.h:197
Scalar * valuePtr()
Definition: CompressedStorage.h:99
CompressedStorage()
Definition: CompressedStorage.h:34
Scalar_ Scalar
Definition: CompressedStorage.h:27
const StorageIndex & index(Index i) const
Definition: CompressedStorage.h:116
void swap(CompressedStorage &other)
Definition: CompressedStorage.h:51
CompressedStorage(Index size)
Definition: CompressedStorage.h:36
StorageIndex * indexPtr()
Definition: CompressedStorage.h:101
void append(const Scalar &v, Index i)
Definition: CompressedStorage.h:87
const Scalar * valuePtr() const
Definition: CompressedStorage.h:98
StorageIndex_ StorageIndex
Definition: CompressedStorage.h:28
void reallocate(Index size)
Definition: CompressedStorage.h:185
Scalar * m_values
Definition: CompressedStorage.h:196
CompressedStorage(const CompressedStorage &other)
Definition: CompressedStorage.h:38
Scalar atInRange(Index start, Index end, Index key, const Scalar &defaultValue=Scalar(0)) const
Definition: CompressedStorage.h:143
Index searchLowerIndex(Index key) const
Definition: CompressedStorage.h:122
void reserve(Index size)
Definition: CompressedStorage.h:63
void moveChunk(Index from, Index to, Index chunkSize)
Definition: CompressedStorage.h:178
Scalar & atWithInsertion(Index key, const Scalar &defaultValue=Scalar(0))
Definition: CompressedStorage.h:157
void clear()
Definition: CompressedStorage.h:96
const Scalar & value(Index i) const
Definition: CompressedStorage.h:107
Index m_allocatedSize
Definition: CompressedStorage.h:199
Index allocatedSize() const
Definition: CompressedStorage.h:95
Index size() const
Definition: CompressedStorage.h:94
CompressedStorage & operator=(const CompressedStorage &other)
Definition: CompressedStorage.h:42
void resize(Index size, double reserveSizeFactor=0)
Definition: CompressedStorage.h:72
Scalar at(Index key, const Scalar &defaultValue=Scalar(0)) const
Definition: CompressedStorage.h:131
Index searchLowerIndex(Index start, Index end, Index key) const
Definition: CompressedStorage.h:125
#define max(a, b)
Definition: datatypes.h:23
static constexpr lastp1_t end
Definition: IndexedViewHelper.h:79
EIGEN_BLAS_FUNC() swap(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy)
Definition: level1_impl.h:117
EIGEN_DEVICE_FUNC void throw_std_bad_alloc()
Definition: Memory.h:110
EIGEN_DEVICE_FUNC void smart_copy(const T *start, const T *end, T *target)
Definition: Memory.h:569
void smart_memmove(const T *start, const T *end, T *target)
Definition: Memory.h:594
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
type
Definition: compute_granudrum_aor.py:141
Definition: Eigen_Colamd.h:49
void start(const unsigned &i)
(Re-)start i-th timer
Definition: oomph_utilities.cc:243
#define EIGEN_SPARSE_COMPRESSED_STORAGE_REALLOCATE_PLUGIN
Definition: sparse_basic.cpp:14
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
Definition: NumTraits.h:217