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])
213 if(to>from && from+chunkSize>to)
246 #ifdef EIGEN_SPARSE_COMPRESSED_STORAGE_REALLOCATE_PLUGIN 274 #endif // EIGEN_COMPRESSED_STORAGE_H const gtsam::Symbol key('X', 0)
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)
void moveChunk(Index from, Index to, Index chunkSize)
const StorageIndex & index(Index i) const
const Scalar * valuePtr() const
const StorageIndex * indexPtr() const
StorageIndex * indexPtr()
Namespace containing all symbols from the Eigen library.
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
const Scalar & value(Index i) const
CompressedStorage(Index size)
static const Similarity3 id
EIGEN_DEVICE_FUNC void smart_copy(const T *start, const T *end, T *target)
void append(const Scalar &v, Index i)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Array< int, Dynamic, 1 > v
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 swap(GeographicLib::NearestNeighbor< dist_t, pos_t, distfun_t > &a, GeographicLib::NearestNeighbor< dist_t, pos_t, distfun_t > &b)
void prune(const Scalar &reference, const RealScalar &epsilon=NumTraits< RealScalar >::dummy_precision())
Scalar at(Index key, const Scalar &defaultValue=Scalar(0)) const
static EIGEN_DEPRECATED const end_t end
#define EIGEN_SPARSE_COMPRESSED_STORAGE_REALLOCATE_PLUGIN
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