rcpp_hdf5dataset_scalar_sum: Sum of all elements of an HDF5 dataset (R6 wrapper)

View source: R/RcppExports.R

rcpp_hdf5dataset_scalar_sumR Documentation

Sum of all elements of an HDF5 dataset (R6 wrapper)

Description

Block-wise computation of sum(X). Equivalent to sum(as.matrix(X)) but without loading the full matrix into RAM.

Usage

rcpp_hdf5dataset_scalar_sum(ptr, paral = NULL, wsize = NULL, threads = NULL)

Arguments

ptr

External pointer (SEXP) to an open hdf5Dataset.

paral

Logical or NULL; enable OpenMP parallelisation.

wsize

Integer or NULL; block size (NULL = auto).

threads

Integer or NULL; thread count (NULL = auto).

Value

Scalar numeric.


BigDataStatMeth documentation built on May 15, 2026, 1:07 a.m.