-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use rng.choice without unpacked in subsample_without_replacement with…
… 64-bit support (#935) * Split _subsample in w and wo replacement * Use rng.choice and reverse lookup... slower than original * Optimize reverse lookup * Improve spacing Co-authored-by: Daniel McDonald <d3mcdonald@eng.ucsd.edu> * Add spacing Co-authored-by: Daniel McDonald <d3mcdonald@eng.ucsd.edu> * Add spaces Co-authored-by: Daniel McDonald <d3mcdonald@eng.ucsd.edu> * Add space Co-authored-by: Daniel McDonald <d3mcdonald@eng.ucsd.edu> * Add space Co-authored-by: Daniel McDonald <d3mcdonald@eng.ucsd.edu> * Fix typo * Add comment * Declare idx as Py_ssize_t since it is used in a range loop * Use cdef * Remove tmp buffer result * Update comment Co-authored-by: Daniel McDonald <d3mcdonald@eng.ucsd.edu> * Document PR 935 --------- Co-authored-by: Daniel McDonald <d3mcdonald@eng.ucsd.edu>
- Loading branch information
Showing
2 changed files
with
127 additions
and
33 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