-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[r] Adjust blockwise + re-indexer to return condensed matrix, not ful…
…l domain (#3395) The blockwise iterator + re-indexer in the R API currently return a matrix with the full domain of the array, not the re-indexed shape. This PR adjusts the behavior to return the matrix with the re-indexed shape The new behavior mimics the Python API demonstrated [here](https://gist.github.com/mojaveazure/beb4ecda9d37dc67140ba494e4ec43a5#file-soma-blockwise-reindexer-py-rmd) Modified SOMA methods: - `BlockwiseSparseReadIter$private$soma_reader_transform()`: if re-indexing is enabled, adjust the shape for each re-indexed axis to the re-indexed shape #3385 [SC-59743](https://app.shortcut.com/tiledb-inc/story/59743) * Start fixing blockwise iterator * Complete updated re-indexer * Remove outdated comments * Apply suggestions from code review Co-authored-by: John Kerl <[email protected]> * Update apis/r/R/BlockwiseIter.R Co-authored-by: Aaron Wolen <[email protected]> --------- Co-authored-by: John Kerl <[email protected]> Co-authored-by: Aaron Wolen <[email protected]>
- Loading branch information
1 parent
b4cf341
commit 6b6edae
Showing
2 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters