| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
asv executes the benchmarks of the current branch building the code
specified in "branches". Previously this was "master" instead of "HEAD"
(the code currently worked on). This PR changes "master" -> "HEAD" as it
seems more likely for a user to be generating benchmarks for the code
they are currently working on.
|
| |\
| |
| | |
MAINT: AVX512 implementation with intrinsic for float64 input np.exp()
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| | |
|
| | |
|
| |\
| |
| | |
MAINT: cleanup unused imports; avoid redefinition of imports
|
| | |
| |
| |
| |
| |
| |
| | |
* Cleanup unused imports (F401) of mostly standard Python modules,
or some internal but unlikely referenced modules
* Where internal imports are potentially used, mark with noqa
* Avoid redefinition of imports (F811)
|
| |/ |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |\
| |
| | |
BENCH: Add benchmark for small array coercions
|
| | |
| |
| |
| |
| | |
Note that since the benchmarks are so fast, the actual results
are diluted behind one more python function call.
|
| |/ |
|
| |
|
|
|
|
|
| |
Inheriting from object was necessary for Python 2 compatibility to use
new-style classes. In Python 3, this is unnecessary as there are no
old-style classes.
Dropping the object is more idiomatic Python.
|
| |
|
|
|
| |
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
|
| |
|
|
|
| |
Due to Numpy cythonize changes, Cython is required. Update renamed asv
option + bump default Python version.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
* DOC, MAINT: Misc. typo fixes
Found via `codespell`
|
| | |
|
| |\
| |
| |
| |
| | |
ENH: randomgen
This merges randomgen into numpy, which was originally developed at https://github.com/bashtage/randomgen and provides a new and improved API for random number generation with much new and improved functionality.
|
| | |
| |
| |
| |
| |
| | |
Pep8 fixes
Remove unused imports
Fix name error
|
| | |
| |
| |
| | |
This reverts commit 17e0070df93f4262908f884dca4b08cb7d0bba7f.
|
| | |\ |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
remove numpy.random.gen, BRNG.generator, pcg*, rand, randn
remove use_mask and Lemire's method, fix benchmarks for PCG removal
convert brng to bitgen (in C) and bit_generator (in python)
convert base R{NG,andom.*} to BitGenerator, fix last commit
randint -> integers, remove rand, randn, random_integers
RandomGenerator -> Generator, more "basic RNG" -> BitGenerator
random_sample -> random, jump -> jumped, resync with randomgen
Remove derived code from entropy
Port over changes accepted in upstream to protect log(0.0) where relevant
fix doctests for jumped, better document choice
Remove Python 2.7 shims
Use NPY_INLINE to simplify
Fix performance.py to work
Renam directory brng to bit_generators
Fix examples wiht new directory structure
Clarify relationship to historical RandomState
Remove references to .generator
Rename xoshiro256/512starstar
|
| | | |
| | |
| | |
| | |
| | |
| | | |
skip doctests that require scipy
move original mtrand module to _mtrand
adjust documentation for namespace change
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
remove files that were part of the origal repo
rework randomgen docs to integrate with numpy and fix some links
remove convenience functions, require explicit call to gen.brng
move code out of numpy.random.randomgen into numpy.random
|
| |\ \ \
| |_|/
|/| | |
ENH: Improved performance of PyArray_FromAny for sequences of array-like
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Prior to this commit
np.array([array_like])
would recursively copy each element of array_like. This is due to the
fact that setArrayFromSequence only special-cased lists of NumPy arrays,
any other object was treated as a sequence even if it supported buffer
or __array*__ interfaces. See tensorflow/tensorflow#27692 for details.
The commit generalizes the special-case in setArrayFromSequence to any
array-like, i.e. a buffer or an object with __array__, __array_interface__
__array_struct__.
|
| |\ \ \
| |_|/
|/| | |
ENH: restore unpack bit lookup table
|
| | |/
| |
| |
| |
| |
| | |
Restores the good performance of unpackbits we had since 1.13.
Added a second lookup table for the new little bitorder flag and changed
it to be stored in little endian as it is the more common endian.
|
| |/ |
|
| | |
|