summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* DOC, TST: test setdiff1d assume_uniqueTyler Reddy2018-10-162-2/+11
| | | | | | | | * add unit test for setdiff1d covering code path where assume_unique is True * remove setdiff1d docstring guarantee that returned value is sorted -- it is not
* MAINT: fix depreciation message typo for np.sumRobin Aggleton2018-10-161-1/+1
|
* Merge pull request #12155 from eric-wieser/setrefMatti Picus2018-10-162-20/+18
|\ | | | | MAINT: Move NPY_SETREF to somewhere more reusable
| * MAINT: Move NPY_SETREF alongside the other backportsEric Wieser2018-10-142-20/+18
| |
* | TST: test byte_bounds contiguity handlingTyler Reddy2018-10-151-4/+28
| | | | | | | | | | | | | | * add unit tests to probe previously-uncovered code paths in byte_bounds() that handle both positive and negative strides in non-contiguous arrays (or, at least, arrays with unusual ordering)
* | MAINT: Update ndarrayobject.h `__cplusplus` block. (#12145)lerbuke2018-10-151-7/+1
| |
* | TST: add test for weighted histogram mismatchTyler Reddy2018-10-141-0/+7
| | | | | | | | | | | | * add a unit test for an uncovered code path where a histogram array does not match the shape of the provided array of weights
* | ENH: __array_function__ support for np.fft and np.linalg (#12117)Stephan Hoyer2018-10-123-1/+117
| | | | | | | | | | | | | | | | | | | | | | | | * ENH: __array_function__ support for np.fft and np.linalg xref GH12028 * CLN: remove unnecessary dispatcher functions from np.linalg * CLN: remove more unneeded dispatchers * CLN: remove repeated dispatchers from np.linalg
* | Merge pull request #11613 from moshelooks/patch-2Matti Picus2018-10-121-4/+4
|\ \ | | | | | | BUG: have geometric() raise ValueError on p=0
| * | BUG: have geometric() raise ValueError on p=0Moshe Looks2018-07-241-4/+4
| | | | | | | | | Currently `np.random.geometric(0) => -9223372036854775808`
* | | Merge pull request #11771 from asnasnasn/shuf-mmMatti Picus2018-10-122-3/+6
|\ \ \ | | | | | | | | BUG: Make `random.shuffle` work on 1-D instances of `ndarray` subclasses
| * | | BUG: Make `random.shuffle` work on 1-D instances of `ndarray` subclassesWenjamin Petrenko2018-08-182-3/+6
| | | | | | | | | | | | | | | | Closes #11442.
* | | | Merge pull request #12116 from shoyer/array-function-numpy-libCharles Harris2018-10-117-0/+379
|\ \ \ \ | | | | | | | | | | ENH: __array_function__ support for np.lib, part 1/2
| * | | | ENH: __array_function__ for np.lib, part 1Stephan Hoyer2018-10-087-0/+379
| | | | | | | | | | | | | | | | | | | | np.lib.arraypad through np.lib.nanfunctions
* | | | | Merge pull request #12115 from shoyer/array-function-numpy-coreCharles Harris2018-10-114-12/+375
|\ \ \ \ \ | | | | | | | | | | | | ENH: __array_function__ support for most of numpy.core
| * | | | | ENH: __array_function__ support for most of numpy.coreStephan Hoyer2018-10-084-12/+375
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | With the notable exceptions of np.einsum and np.block. xref GH12028
* | | | | Merge pull request #12147 from eric-wieser/unify-type-resolution-errorsCharles Harris2018-10-111-78/+33
|\ \ \ \ \ | | |_|_|/ | |/| | | MAINT: Move duplicated type_reso_error code into a helper function
| * | | | MAINT: Move duplicated type_reso_error code into a helper functionEric Wieser2018-10-111-78/+33
| | | | |
* | | | | MAINT: Fix typo in commentEric Wieser2018-10-111-1/+1
|/ / / /
* | | | Merge pull request #12137 from tylerjereddy/fill_diag_err_testEric Wieser2018-10-111-0/+13
|\ \ \ \ | | | | | | | | | | TST: error tests for fill_diagonal()
| * | | | TST: error tests for fill_diagonal()Tyler Reddy2018-10-101-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | * add error handling tests for previously uncovered code in fill_diagonal()
* | | | | Merge pull request #12138 from tylerjereddy/diag_indices_from_err_testEric Wieser2018-10-111-5/+17
|\ \ \ \ \ | | | | | | | | | | | | TST: error tests for diag_indices_from()
| * | | | | TST: error tests for diag_indices_from()Tyler Reddy2018-10-101-5/+17
| |/ / / / | | | | | | | | | | | | | | | | | | | | * add unit tests for previously uncovered error handling code in diag_indices_from()
* | | | | Merge pull request #12134 from MartinThoma/masterMatti Picus2018-10-111-2/+1
|\ \ \ \ \ | |/ / / / |/| | | | DOC: Remove duplicated sentence in numpy.multiply
| * | | | DOC: Remove duplicated sentence in numpy.multiplyMartin Thoma2018-10-101-2/+1
| | | | | | | | | | | | | | | | | | | | The return value documentation was duplicated.
* | | | | Merge pull request #12011 from pierreglaser/implement-reduce-exCharles Harris2018-10-103-0/+223
|\ \ \ \ \ | | | | | | | | | | | | ENH: implementation of array_reduce_ex
| * | | | | ENH implement __reduce_ex__ for np.ndarray and pickle protocol 5Pierre Glaser2018-10-103-0/+223
| |/ / / /
* | | | | Merge pull request #12108 from AetherUnbound/bugfix/12107Matti Picus2018-10-102-0/+25
|\ \ \ \ \ | |/ / / / |/| | | | BUG: Allow boolean subtract in histogram
| * | | | BUG: Allow boolean subtract in histogramMatthew Bowden2018-10-102-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert bool to uint at start, rather than attempt a XOR Only check type against np.bool_ Refactor warnings check
* | | | | Merge pull request #12133 from pierreglaser/centralize-pickle-importCharles Harris2018-10-1016-92/+118
|\ \ \ \ \ | | | | | | | | | | | | MAINT, TST refactor pickle imports and tests
| * | | | | MAINT, TST import pickle from numpy.core.numericPierre Glaser2018-10-1016-92/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All imports of pickle from numpy modules are now done this way: >>> from numpy.core.numeric import pickle Also, some loops on protocol numbers are added over pickle tests that were not caught from #12090
* | | | | | Merge pull request #12123 from mattip/deprecate-asscalarCharles Harris2018-10-101-0/+9
|\ \ \ \ \ \ | | | | | | | | | | | | | | DEP: deprecate asscalar
| * | | | | | MAINT: Update deprecation message.Charles Harris2018-10-101-1/+1
| | | | | | |
| * | | | | | DEP: deprecate asscalarmattip2018-10-101-0/+9
| |/ / / / /
* | | | | | Merge pull request #12127 from charris/fix-memory-leakCharles Harris2018-10-101-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: Fix memory leak in mapping.c
| * | | | | | BUG: Fix memory leak in mapping.cCharles Harris2018-10-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix missing DECREF before successful return. Closes #12037.
* | | | | | | BUG: fix PyDataType_ISBOOLmattip2018-10-101-1/+1
| | | | | | |
* | | | | | | BUG: Fix in-place permutationKevin Sheppard2018-10-102-2/+24
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Alter test to check if arrays are the same to avoid in-place of some array-like objects closes #11975
* | | | | | Merge pull request #12112 from mattip/get_field-offset-checkCharles Harris2018-10-092-0/+33
|\ \ \ \ \ \ | | | | | | | | | | | | | | ENH: check getfield arguments to prevent invalid memory access
| * | | | | | ENH: check getfield arguments to prevent invalid memory accessmattip2018-10-092-0/+33
| | | | | | |
* | | | | | | TST: expand cases in test_issctype()Tyler Reddy2018-10-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add additional test cases for test_issctype requested by @eric-wieser in gh-12109
* | | | | | | Merge pull request #11979 from hmaarrfk/block_single_array_copy_testMatti Picus2018-10-092-1/+20
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | MAINT: Ensure that a copy of the array is returned when calling `block`.
| * | | | | | MAINT: Ensure that block returns a new arrayMark Harfouche2018-09-192-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the case that a user calls np.block(array), the old block function would return a view into the array. This ensures that a new array is returned
* | | | | | | Merge pull request #12088 from jdemeyer/cpu_countCharles Harris2018-10-081-1/+4
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | BUG: limit default for get_num_build_jobs() to 8
| * | | | | | | DOC: tweak grammarmattip2018-10-091-1/+1
| | | | | | | |
| * | | | | | | BUG: limit default for get_num_build_jobs() to 8Jeroen Demeyer2018-10-051-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default value for get_num_build_jobs() is now the number of CPUs limited to a maximum of 8. This is to prevent overloading systems with a lot of CPUs. See ticket #12087
* | | | | | | | Merge pull request #12109 from tylerjereddy/test_issctypeCharles Harris2018-10-081-0/+12
|\ \ \ \ \ \ \ \ | |_|_|_|_|/ / / |/| | | | | | | TST: add unit test for issctype
| * | | | | | | TST: add unit test for issctypeTyler Reddy2018-10-071-0/+12
| | |_|/ / / / | |/| | | | |
* | | | | | | ENH: Validate dispatcher functions in array_function_dispatch (#12099)Stephan Hoyer2018-10-082-2/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Validate dispatcher functions in array_function_dispatch They should have the same signature as the decorated function. Note: eventually these checks should be optional -- we really only need them to be run as part of NumPy's test suite, not every time numpy is imported. * ENH: make signature checking in array_function_dispatch optional * Change verify_signature keyword argument to verify
* | | | | | | Merge pull request #12090 from pierreglaser/add-protocol-kwarg-to-array-dumpCharles Harris2018-10-085-54/+73
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | MNT Update pickling test by making them loop over all protocols