tatami
C++ API for different matrix representations
Loading...
Searching...
No Matches
SparseRange.hpp
Go to the documentation of this file.
1#ifndef TATAMI_SPARSE_RANGE_H
2#define TATAMI_SPARSE_RANGE_H
3
4#include <cstddef>
5#include <vector>
6
13namespace tatami {
14
31template <typename Value_, typename Index_>
40 SparseRange(Index_ number, const Value_* value = NULL, const Index_* index = NULL) : number(number), value(value), index(index) {}
41
45 SparseRange() = default;
46
50 Index_ number = 0;
51
56 const Value_* value = NULL;
57
62 const Index_* index = NULL;
63};
64
65}
66
67#endif
Flexible representations for matrix data.
Definition Extractor.hpp:15
A range of a sparse vector.
Definition SparseRange.hpp:32
const Value_ * value
Definition SparseRange.hpp:56
Index_ number
Definition SparseRange.hpp:50
SparseRange(Index_ number, const Value_ *value=NULL, const Index_ *index=NULL)
Definition SparseRange.hpp:40
const Index_ * index
Definition SparseRange.hpp:62