Read block from HDF5 dataset (subsetting)
rcpp_hdf5dataset_subset(ptr_sexp, rows, cols)Numeric matrix with requested data
External pointer to hdf5Dataset
Integer vector with row indices (1-based, as in R)
Integer vector with column indices (1-based, as in R)
This function reads a subset of data from an HDF5 dataset. Indices are 1-based (R convention) and converted internally to 0-based (C++ convention).
The function handles:
Contiguous blocks (e.g., rows 1:10)
Non-contiguous indices (e.g., rows c(1,3,5,7))
Full dimensions (e.g., all rows, specific columns)