Skip to content

Commit

Permalink
Minor variable renaming and commenting for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Aug 7, 2023
1 parent a8a376b commit 4625695
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/tatami_hdf5/Hdf5CompressedSparseMatrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -662,13 +662,13 @@ class Hdf5CompressedSparseMatrix : public tatami::Matrix<Value_, Index_> {
Index_ full_length)
const {
Index_ counter = 0;
bool full_extraction = (start == 0 && length == full_length);
bool extract_full = (start == 0 && length == full_length);

if (length) {
extract_primary_raw(i,

[&](size_t num, const CachedIndex_* is, const CachedValue_* vs) -> Index_ {
if (full_extraction) {
if (extract_full) {
counter = num;
} else {
CachedIndex_ end = start + length;
Expand All @@ -688,7 +688,7 @@ class Hdf5CompressedSparseMatrix : public tatami::Matrix<Value_, Index_> {
start,
work,
needs_value,
needs_index || !full_extraction
needs_index || !extract_full // if we don't need the indices, we still need to load them if we're taking a block instead of the full dimension.
);
}

Expand Down

0 comments on commit 4625695

Please sign in to comment.