tatami_chunked
Helpers to create custom chunked tatami matrices
|
Methods to handle chunked tatami matrices. More...
Classes | |
struct | ChunkDimensionStats |
Statistics for regular chunks along a dimension. More... | |
class | CustomDenseChunkedMatrix |
Matrix of custom dense chunks. More... | |
struct | CustomDenseChunkedMatrixOptions |
Options for data extraction from a CustomDenseChunkedMatrix . More... | |
class | CustomSparseChunkedMatrix |
Matrix of custom sparse chunks. More... | |
struct | CustomSparseChunkedMatrixOptions |
Options for data extraction from a CustomSparseChunkedMatrix . More... | |
struct | DenseSlabFactory |
Factory for dense slabs. More... | |
class | LruSlabCache |
Least-recently-used cache for slabs. More... | |
class | MockSimpleDenseChunk |
Mock a simple dense chunk for a CustomDenseChunkedMatrix . More... | |
class | MockSimpleSparseChunk |
Mock a simple sparse chunk for a CustomSparseChunkedMatrix . More... | |
class | MockSubsettedDenseChunk |
Mock a subsettable dense chunk for a CustomDenseChunkedMatrix . More... | |
class | MockSubsettedSparseChunk |
Mock a subsettable sparse chunk for a CustomSparseChunkedMatrix . More... | |
class | OracularSlabCache |
Oracular-aware cache for slabs. More... | |
class | OracularSubsettedSlabCache |
Oracle-aware cache for slabs, plus subsets. More... | |
struct | OracularSubsettedSlabCacheSelectionDetails |
Details on the subset to extract in OracularSubsettedSlabCache . More... | |
class | OracularVariableSlabCache |
Oracle-aware cache for variable-size slabs. More... | |
class | SimpleDenseChunkWrapper |
Create a dense chunk for a CustomDenseChunkedMatrix . More... | |
class | SimpleSparseChunkWrapper |
Create a sparse chunk for a CustomSparseChunkedMatrix . More... | |
struct | SlabCacheStats |
Statistics for slab caching. More... | |
struct | SparseSlabFactory |
Factory for sparse slabs. More... | |
Enumerations | |
enum class | OracularSubsettedSlabCacheSelectionType : char { FULL , BLOCK , INDEX } |
Functions | |
template<typename Index_ > | |
Index_ | integer_ceil (Index_ left, Index_ right) |
template<typename Index_ > | |
Index_ | get_chunk_length (const ChunkDimensionStats< Index_ > &stats, Index_ i) |
Methods to handle chunked tatami matrices.
Type of selection on the target dimension. Used to determine the subsets to extract in OracularSubsettedSlabCache
.
FULL
: all rows/columns.BLOCK
: a contiguous block of rows/columns.INDEX
: an indexed subset of rows/columns. Index_ | Integer type. |
Obtain the integer ceiling of left/right
.
left | A non-negative number. |
right | A non-negative number. |
right > 0
, otherwise 0. Index_ tatami_chunked::get_chunk_length | ( | const ChunkDimensionStats< Index_ > & | stats, |
Index_ | i | ||
) |
Index_ | Integer type for the various dimensions. |
stats | Chunk dimension statistics. |
i | Zero-based index of the chunk of interest along the relevant dimension. |
i
. This is either ChunkDimensionStats::chunk_length
or ChunkDimensionStats::last_chunk_length
, depending on whether i
is the last chunk.