summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* DOC: Document ma.filled behavior with non-scalar fill_value (#13698)Kriti Singh2019-11-231-8/+33
| | | * DOC: Document and deprecate ma.filled behavior with non-scalar fill_value
* MAINT: Cleaned up mintypecode for Py3 (#14967)Joseph Fox-Rabinovitz2019-11-231-6/+4
| | | | | Using generators instead of full-blown lists Using set for search instead of list Using min to get single element insteaf of sorting full list
* TST: skip if cython is not availablemattip2019-11-221-0/+6
|
* Merge pull request #14932 from mproszewska/doc-tolistMatti Picus2019-11-211-6/+13
|\ | | | | DOC: Compare 'tolist' function to 'list' in example
| * Add changes to run tests againmpro2019-11-191-1/+1
| |
| * Apply proposed changesmpro2019-11-181-6/+3
| |
| * Doc: Compare 'tolist' function to 'list' in examplempro2019-11-181-4/+14
| |
* | ENH: add isinf, isnan, fmin, fmax loops for datetime64, timedelta64 (#14841)Matti Picus2019-11-215-38/+90
| | | | | | | | | | | | | | | | `np.datetime('NaT')` should behave more like `float('Nan')`. Add needed infrastructure so `np.isinf(a)` and `np.isnan(a)` will run on `datetime64` and `timedelta64` dtypes. Also added specific loops for `numpy.fmin` and `numpy.fmax` that mask `NaT`.
* | Merge pull request #14951 from bashtage/random-examplesMatti Picus2019-11-214-21/+37
|\ \ | | | | | | DOC: Clean up examples of low-level random access
| * | DOC: Clean up examples of low-level random accessKevin Sheppard2019-11-214-21/+37
| | | | | | | | | | | | | | | | | | Test examples on Linux and Windows Correct bug in Cython example Improve building instructions for numba examples
* | | BUG: Fix step returned by linspace when num=1 and endpoint=False (#14929)David Zwicker2019-11-212-9/+16
|/ / | | | | | | | | | | Changed the the behavior of linspace to return a proper step size for arguments num=1 and endpoint=False, where previously NaN was returned. closes gh-14927
* | Merge pull request #14944 from mattip/move-examplesCharles Harris2019-11-209-5/+4
|\ \ | | | | | | MAINT: move numpy/random/examples -> numpy/random/_examples
| * | DOC, MAINT: fix documentation, remove __init__.pymattip2019-11-201-0/+0
| | |
| * | MAINT: move numpy/random/examples -> numpy/random/_examplesmattip2019-11-199-5/+4
| | |
* | | DOC: testing: Note handling of scalars in assert_array_equal and assert_equal.Warren Weckesser2019-11-201-5/+22
|/ /
* | DOC: Clarify return type for default rngKevin Sheppard2019-11-191-3/+7
| | | | | | | | Ensure that default_rng has a return type to improve code completion
* | API: restructure and document numpy.random C-API (#14604)Matti Picus2019-11-1919-78/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * API: restructure and document numpy.random C-API * DOC: fix bad reference * API: ship, document, and start to test numpy.random C-API examples * API, DOC, TST: fix tests, refactor documentation to include snippets * BUILD: move public headers to numpy/core/include/numpy/random * TST: ignore DeprecationWarnings in setuptools and numba * DOC: document the C-API as used from Cython
* | TST: turn off tracing for np.resize testsmattip2019-11-162-0/+10
| |
* | DOC: Note FFT type promotion (#14912)Daniel Ching2019-11-151-0/+8
| | | | | | | | | | | | | | * DOC: Note FFT type promotion The NumPy FFT implementation will promote `float32` types to `float64` types. This may not be desired for some applications, but the SciPy implementation supports more data types. Closes #14892
* | Merge pull request #14878 from mattip/remove-sse2Warren Weckesser2019-11-141-5/+0
|\ \ | | | | | | BUILD: remove SSE2 flag from numpy.random builds
| * | BUILD: remove SSE2 flag from numpy.random buildsmattip2019-11-111-5/+0
| | |
* | | Merge pull request #14901 from eric-wieser/remove-uses-of-scalar-aliasesMatti Picus2019-11-1422-74/+72
|\ \ \ | | | | | | | | MAINT: Remove uses of scalar aliases
| * | | MAINT: Remove uses of scalar aliasesEric Wieser2019-11-1322-74/+72
| | | | | | | | | | | | | | | | Relates to gh-6103
* | | | Merge pull request #14820 from eric-wieser/template-loopsMatti Picus2019-11-132-217/+74
|\ \ \ \ | |/ / / |/| | | MAINT: Use templating to merge float loops
| * | | MAINT: Use templating to merge float loopsEric Wieser2019-11-012-217/+74
| | | | | | | | | | | | | | | | | | | | | | | | This deduplicates a bunch of code, making this file shorter and slightly more manageable. Note that this requires us to adjust the api parser to process templated files.
* | | | MAINT: Delete and ignore generated filesEric Wieser2019-11-133-1593/+3
| | | |
* | | | BUG: Remove builtins from __all__Eric Wieser2019-11-121-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was introduced in 3ca0eb1136102ff01bcc171f53c106326fa4445b, due to an incorrect implementation of `__dir__` (fixed in the previous commit). It was never released, so this is not a breaking change. In that commit, `from numpy import *` would reset all the builtins to their defaults, and set `unicode = str`, `long = int`.
* | | | BUG: Fix np.__dir__ to correctly handle new propertiesEric Wieser2019-11-111-1/+1
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | Previously this would fail, but only on python 3.7+ ``` np.new_member = 1 assert 'new_member' in dir(np) ``` While this isn't something we support anyway, it certainly wasn't intentional.
* | | MAINT: revert gh-14800, which gave precedence to OO->O over OO->?mattip2019-11-067-37/+23
| | |
* | | BUG: raise ValueError for empty arrays passed to _pyarray_correlate (#14829)Doug Davis2019-11-062-0/+13
| | | | | | | | | | | | | | | | | | | | | * BUG: raise ValueError for empty arrays passed to _pyarray_correlate This is related to GitHub issue #14366 where empty arrays were causing crashes.
* | | MAINT: move buffer.h -> npy_buffer.h to avoid conflictsmattip2019-11-0411-10/+10
| | |
* | | Merge pull request #14827 from chrisburr/patch-1Charles Harris2019-11-041-1/+2
|\ \ \ | | | | | | | | BLD: Prevent -flto from optimising long double representation check away
| * | | BLD: Review feedback for clang -flto fixChris Burr2019-11-051-1/+2
| | | |
| * | | BLD: Prevent -flto from optimising long double representation check awayChris Burr2019-11-041-1/+1
| | |/ | |/|
* | | Merge pull request #14800 from mattip/reorder-obj-comparison-loopCharles Harris2019-11-048-30/+52
|\ \ \ | | | | | | | | ENH: change object-array comparisons to prefer OO->O unfuncs
| * | | ENH: add OO->? loops, use np.compare(a, b, dtype=bool), add commentsmattip2019-10-306-8/+26
| | | |
| * | | WIP, DEP, ENH: finish richcompare changes from 1.10mattip2019-10-297-25/+29
| | | |
* | | | DOC: Add take_along_axis to the see also section in argmin, argmax etc. (#14799)mproszewska2019-11-041-1/+37
| | | | | | | | | | | | * Add take_along_axis to the see also section in argmin, argmax, argsort and argpartition and add examples
* | | | Merge pull request #14805 from eric-wieser/no-Fractions-from-np-scalarsMatti Picus2019-11-041-2/+2
|\ \ \ \ | | | | | | | | | | TST: Don't construct Fraction instances from numpy scalars
| * | | | TST: Don't construct Fraction instances from numpy scalarsEric Wieser2019-10-301-2/+2
| | |_|/ | |/| | | | | | | | | | | | | | | | | | Fraction.__float__ gives a DeprecationWarning if the division results in a non-builtin float This was never intended as part of the test anyway.
* | | | Merge pull request #14814 from eric-wieser/rename-rankMatti Picus2019-11-031-40/+37
|\ \ \ \ | | | | | | | | | | Rename helper functions to not use the word rank
| * | | | Rename helper functions to not use the word rankEric Wieser2019-10-311-40/+37
| |/ / / | | | | | | | | | | | | | | | | | | | | As shown in gh-10471, this naming was confusing. Also rename all the functions of this style to use snake case
* | | | merge latest changes on master branchRedRuM2019-11-03214-3731/+9041
|\ \ \ \ | | |_|/ | |/| |
| * | | Merge pull request #14227 from zjpoh/from_string_complexMatti Picus2019-10-313-2/+92
| |\ \ \ | | | | | | | | | | ENH: Parse complex number from string
| | * | | Fix style per Sebastian's commentszjpoh2019-10-153-17/+11
| | | | |
| | * | | Update per Sebastian's commentszjpoh2019-10-063-7/+14
| | | | |
| | * | | Add deprecation warning for invalid complex stringzjpoh2019-09-262-5/+26
| | | | |
| | * | | Merge branch 'master' into from_string_complexzjpoh2019-09-26180-2364/+6216
| | |\ \ \
| | * | | | Add parenthesis as suggested by compiler. Update docstring.zjpoh2019-08-193-3/+8
| | | | | |
| | * | | | Parse complex number from stringzjpoh2019-08-072-1/+64
| | | | | |