tatami_chunked
Helpers to create custom chunked tatami matrices
|
Create a dense chunk for a CustomDenseChunkedMatrix
.
More...
#include <mock_dense_chunk.hpp>
Create a dense chunk for a CustomDenseChunkedMatrix
.
Wraps a dense blob in a simple chunk interface for use inside a CustomDenseChunkedMatrix
. Each blob should hold a (possibly compressed) 2-dimensional array of numeric values. The wrapper satisfies the MockSimpleDenseChunk
interface, but is even simpler; extraction of any data involves realization of the entire blob, with no optimization for subsets of interest along either dimension.
The Blob_
class should provide the following:
typedef value_type
, specifying the type of the value in the array.nrow() const
method, defining the number of rows in the array.ncol() const
method, defining the number of columns in the array.bool is_row_major() const
, indicating whether the realized array is row-major.void inflate(std::vector<value_type>& buffer) const
method that fills buffer
with the contents of the array. This should be filled in row-major format if is_row_major()
returns true and in column-major format otherwise.Blob_ | Class to represent a dense blob. |