biocore / biom-format

The Biological Observation Matrix (BIOM) Format Project
http://biom-format.org
Other
89 stars 95 forks source link

Implement subsample_without_replacement using C++17 std::sample #934

Closed sfiligoi closed 1 year ago

sfiligoi commented 1 year ago

CC @wasade

sfiligoi commented 1 year ago

This version uses drastically less memory, as it does not expand the buffer using np.repeat. Should be cheaper compute wise, too.

sfiligoi commented 1 year ago

Alternative version available in #935 , obsoleting this one.