summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #10986 from mhvk/ma-move-out-matrix-testsEric Wieser2018-04-286-166/+249
|\ | | | | MAINT: move all masked array matrix tests to matrixlib.
| * MAINT: move all masked array matrix tests to matrixlib.Marten van Kerkwijk2018-04-276-166/+249
| | | | | | | | | | | | Further progress in isolating matrix in preparation of its deprecation. There is one place left with an explicit reference to matrix (in MaskedArray.count), which is to be solved later.
* | Merge pull request #10996 from adeak/docfix-stringio-unicodeJulian Taylor2018-04-272-7/+7
|\ \ | | | | | | DOC: Make doc examples using StringIO python2-3 compatible
| * | DOC: Make doc examples using StringIO python2-3 compatibleAndras Deak2018-04-272-7/+7
| | |
* | | Merge pull request #10949 from mattip/doc-nditerAllan Haldane2018-04-274-10/+35
|\ \ \ | |/ / |/| | DOC: cleanup documentation, continuation of nditer PR #9998
| * | Merge branch 'master' into doc-nditerCharles Harris2018-04-2411-14/+335
| |\ \
| * | | DOC: cleanup documentation, continuation of nditer PR #9998mattip2018-04-234-10/+35
| | | |
* | | | DOC: Fix incorrect function name in format_float_positional example (#10987)Mike Toews2018-04-261-1/+1
| |_|/ |/| | | | | The result was correct
* | | Merge pull request #10919 from eric-wieser/__array_wrap__-non-None-outputsMarten van Kerkwijk2018-04-262-145/+262
|\ \ \ | | | | | | | | BUG: Pass non-None outputs to __array_prepare__ and __array_wrap__
| * | | BUG: Calling convention of ufunc.__call__ should not affect ↵Eric Wieser2018-04-222-145/+262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __array_prepare__ or __array_wrap__ arguments This fixes gh-10450. The effect here is that all of these will pass `args=(in1, in2)` to `__array_prepare__` and `__array_wrap__`: * `ufunc(in1, in2)` - unchanged * `ufunc(in1, in2, None)` - previously: * prepare: `(in1, in2, None)` * wrap: `(in1, in2, None)` * `ufunc(in1, in2, out=None)` - previously: * prepare: `(in1, in2, None)` * `ufunc(in1, in2, out=(None,))` - previously * prepare: `(in1, in2, (None,))` Whereas these will pass `args=(in1, in2, out)`; * `ufunc(in1, in2, out)` - unchanged * `ufunc(in1, in2, out=out)` - previously * wrap: `(in1, in2)` * `ufunc(in1, in2, out=(out,))` - previously * prepare: not called on out at all! * wrap: `(in1, in2)`
* | | | Merge pull request #10635 from hameerabbasi/ufunc-reduce-identityMarten van Kerkwijk2018-04-267-41/+208
|\ \ \ \ | | | | | | | | | | ENH: Implement initial kwarg for ufunc.add.reduce
| * | | | ENH: Implement initial kwarg for ufunc.add.reduceHameer Abbasi2018-04-247-41/+208
| | | | |
* | | | | Merge pull request #10953 from tylerjereddy/remove_extraneous_tuple_checksEric Wieser2018-04-261-18/+12
|\ \ \ \ \ | | | | | | | | | | | | MAINT: address extraneous shape tuple checks in descriptor.c
| * | | | | MAINT: addressed extraneous shape tuple checks in descriptor.cTyler Reddy2018-04-251-18/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * C source comments flag two extraneous checks for the object type of self->subarray->shape in descriptor.c * pertinent code has been adjusted to assert the presence of the tuple object where needed & remove a fallback return call along with an extraneous casting
* | | | | | Merge pull request #10871 from eric-wieser/histogramdd-emptyCharles Harris2018-04-251-4/+0
|\ \ \ \ \ \ | | | | | | | | | | | | | | MAINT: Remove unnecessary special case in np.histogramdd for N == 0
| * | | | | | MAINT: Remove unnecessary special case for N == 0Eric Wieser2018-04-101-4/+0
| | | | | | |
* | | | | | | Merge pull request #10911 from toslunar/fix-10899-einsum-float16Charles Harris2018-04-252-3/+13
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | BUG: Fix casting between npy_half and float in einsum
| * | | | | | | add testsToshiki Kataoka2018-04-171-0/+10
| | | | | | | |
| * | | | | | | BUG: Fix casting between npy_half and float in einsumToshiki Kataoka2018-04-161-3/+3
| | | | | | | |
* | | | | | | | MAINT: Remove workaround for gh-10891Eric Wieser2018-04-251-12/+8
| | | | | | | |
* | | | | | | | Merge pull request #10883 from hameerabbasi/nb-doc-fixCharles Harris2018-04-241-10/+8
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | DOC: Fix negative binomial documentation.
| * | | | | | | | DOC: Fix negative binomial documentation.Hameer Abbasi2018-04-201-10/+8
| | | | | | | | |
* | | | | | | | | Merge pull request #10882 from eric-wieser/_array_from_buffer_3118Charles Harris2018-04-242-43/+78
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ |/| | | | | | | | BUG: have _array_from_buffer_3118 correctly handle errors
| * | | | | | | | TST: Work around memory leak in ctypes to prevent another test failingEric Wieser2018-04-201-4/+12
| | | | | | | | |
| * | | | | | | | BUG: have _array_from_buffer_3118 correctly handle errorsEric Wieser2018-04-122-43/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes gh-6741 If an object claims to support the PEP3118 buffer protocol, then any mistakes in the implementation should be raised as errors, rather than falling back on other approaches. This has some behavior changes: * np.array(mem_view_33d) now gives a more useful error message than "memoryview: unsupported format <B" * np.array(ctypes_pointer) now errors rather than creating an object array containing a single pointer Also adds support for 32-dimensional buffers, where previously the max was 31-dimensional.
* | | | | | | | | Merge pull request #10824 from mattip/fix-PyArray_DeprecateWritebackIfCopyCharles Harris2018-04-243-8/+54
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | BUG: test, fix PyArray_DiscardWritebackIfCopy refcount issue and docu…
| * | | | | | | | | STY: Fix long line.Charles Harris2018-04-241-1/+2
| | | | | | | | | |
| * | | | | | | | | fix from reviewmattip2018-04-212-15/+17
| | | | | | | | | |
| * | | | | | | | | BUG: test, fix PyArray_DiscardWritebackIfCopy refcount issue and documentmattip2018-04-213-2/+45
| | |_|_|_|_|_|/ / | |/| | | | | | |
* | | | | | | | | Merge pull request #10946 from ahaldane/fix_style_argCharles Harris2018-04-242-0/+5
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ / |/| | | | | | | | BUG: 'style' arg to array2string broken in legacy mode
| * | | | | | | | BUG: 'style' arg to array2string broken in legacy modeAllan Haldane2018-04-212-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #10934
* | | | | | | | | Merge pull request #10199 from chunweiyuan/quantileStephan Hoyer2018-04-234-4/+274
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ / |/| | | | | | | | ENH: Quantile
| * | | | | | | | ENH: Adding np.quantile() and np.nanquantile(). #10199Chun-Wei Yuan2018-04-164-4/+274
| | | | | | | | |
* | | | | | | | | MAINT, DOC: Fix typos (#10958)Nicholas Nadeau, P.Eng., AVS2018-04-232-2/+2
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fixed doc typo * fixed lib typos * fixed lapack_lite typos * Revert "fixed lapack_lite typos" This reverts commit e7dada860cb73af190234402508ab79965ecd079.
* | | | | | | | Merge pull request #10951 from mattip/nditer-close-fixesAllan Haldane2018-04-233-31/+48
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | BUG: it.close() disallows access to iterator, fixes #10950
| * | | | | | | | fixes from reviewmattip2018-04-221-20/+16
| | | | | | | | |
| * | | | | | | | emphasis accessing `it.operands` only on open iteratormattip2018-04-221-9/+19
| | | | | | | | |
| * | | | | | | | BUG: it.close() disallows access to iterator, fixes #10950mattip2018-04-222-17/+28
| | |_|/ / / / / | |/| | | | | |
* | | | | | | | Merge pull request #10891 from eric-wieser/assert-no-cyclesCharles Harris2018-04-214-14/+167
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | TST: Extract a helper function to test for reference cycles
| * | | | | | | BUG: Ensure the garbage is clear first in assert_no_gc_cyclesEric Wieser2018-04-152-19/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's not always possible to guarantee this, so also adds a test to verify that we don't hang
| * | | | | | | ENH: Show the full list of leaked objectsEric Wieser2018-04-121-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An example output for the test added in the previous commit is: AssertionError: Reference cycles were found when calling make_cycle: 1 objects were collected, of which 1 are shown below: list object with id=2279664872136: [<Recursion on list with id=2279664872136>, <Recursion on list with id=2279664872136>]
| * | | | | | | TST: Extract a helper function to test for reference cyclesEric Wieser2018-04-124-14/+94
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also means we can now test that our test is actually able to detect the type of failure we expect Trying to give myself some tools to debug the failure at https://github.com/numpy/numpy/pull/10882/files#r180813166
* | | | | | | Merge pull request #9998 from mattip/nditer-as-context-managerAllan Haldane2018-04-2116-270/+749
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | ENH: Nditer as context manager
| * | | | | | fixes from reviewmattip2018-04-213-13/+5
| | | | | | |
| * | | | | | ENH: add nditer.close as per reviewmattip2018-04-203-11/+48
| | | | | | |
| * | | | | | ENH: add NpyIter_Close, nditer__{enter,exit}__mattip2018-04-2016-275/+725
| | | | | | |
* | | | | | | DOC: fix broken links for developer documentationNikita Kartashov2018-04-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some links in developer documentation and files had extraneous '-dev' in them, removing it restore the working state of the links. See: #10939
* | | | | | | Merge pull request #10921 from mattip/percentile-graphCharles Harris2018-04-209-124/+131
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | DOC: clear up warnings, fix matplotlib plot
| * | | | | | | fixes from reviewmattip2018-04-182-8/+8
| | | | | | | |
| * | | | | | | DOC: clear up warnings, fix matplotlib plotmattip2018-04-179-124/+131
| | | | | | | |