summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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
| | | |
* | | | Merge pull request #10890 from eric-wieser/linalg-lstsq-ufuncMarten van Kerkwijk2018-04-202-29/+102
|\ \ \ \ | | | | | | | | | | MAINT: lstsq: compute residuals inside the ufunc
| * | | | MAINT: compute residuals inside the ufuncEric Wieser2018-04-172-29/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This prevents an overly large output array being allocated. It also means the the residuals can be handled as a separate out argument in future.
* | | | | Merge pull request #10936 from stefanv/npversionEric Wieser2018-04-201-1/+1
|\ \ \ \ \ | | | | | | | | | | | | DOC: Fix NumpyVersion example (closes gh-10935)
| * | | | | DOC: Fix NumpyVersion example (closes gh-10935)Stefan van der Walt2018-04-191-1/+1
| | | | | |
* | | | | | Merge pull request #10775 from mdboom/return-errors-from-initEric Wieser2018-04-195-31/+40
|\ \ \ \ \ \ | |/ / / / / |/| | | | | BUG: Return NULL from PyInit_* when exception is raised
| * | | | | Return NULL from PyInit_* when exception is raisedMichael Droettboom2018-03-305-31/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I don't think this is documented anywhere, but I'm pretty sure module init functions should return NULL in order to communicate that an exception occurred during initialization (as is the standard Python/C API convention). It's clear from the CPython code [here](https://github.com/python/cpython/blob/master/Python/importdl.c#L162) that if you don't return NULL, the exception is swallowed and replaced with the message "initialization of %s raised unreported exception". Admittedly, this is only useful for people porting Numpy to new platforms where it is helpful to know where module initialization is failing, but it can't hurt.
* | | | | | Merge pull request #10923 from ihormelnyk/masterAllan Haldane2018-04-182-4/+22
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | Fixes #663: fixed dtype alignment for array of structs in case of converting from tuple descr
| * | | | | Fixes #663: fixed dtype alignment for array of structs in case of converting ↵Ihor Melnyk2018-04-182-4/+22
| | |_|/ / | |/| | | | | | | | | | | | | from tuple descr
* | | | | ENH: Extend np.flip to work over multiple axesJunjie Bai2018-04-172-16/+70
|/ / / / | | | | | | | | | | | | Closes #10847
* | | | BUG: fix crash in numpy.genfromtxt(..., names=True, comments=None) (#10822)Raunak Shah2018-04-162-3/+11
| | | | | | | | | | | | | | | | Fixes gh-10780
* | | | Merge pull request #10916 from mhsmith/check_embedded_lapackCharles Harris2018-04-161-1/+1
|\ \ \ \ | | | | | | | | | | Add missing underscore to prototype in check_embedded_lapack
| * | | | Add missing underscore to prototype in check_embedded_lapackMalcolm Smith2018-04-161-1/+1
| | | | |
* | | | | Merge pull request #10878 from mattip/devdocsRalf Gommers2018-04-166-39/+65
|\ \ \ \ \ | |/ / / / |/| | | | DOC: rework documents and silence warnings during sphinx build
| * | | | document a few more missing glossary termsmattip2018-04-131-0/+8
| | | | |
| * | | | fix typos from reviewmattip2018-04-111-2/+2
| | | | |
| * | | | fix failing testmattip2018-04-111-6/+6
| | | | |
| * | | | add missing glossary entries and link in missing documentmattip2018-04-111-2/+20
| | | | |
| * | | | formatting fixesmattip2018-04-113-9/+9
| | | | |
| * | | | update kwargs where neededmattip2018-04-111-1/+1
| | | | |
| * | | | silence warnings, matplotlib deprecated normed in favor of densitymattip2018-04-101-27/+27
| | | | |
* | | | | Merge pull request #10875 from mattip/fix-issue7895Charles Harris2018-04-152-2/+43
|\ \ \ \ \ | | | | | | | | | | | | BUG: fix savetxt, loadtxt for '+-' in complex
| * | | | | BUG: fix savetxt, loadtxt for '+-' in complexmattip2018-04-102-2/+43
| | | | | |
* | | | | | Merge pull request #10907 from mattip/test_polynomial-doctestsCharles Harris2018-04-151-18/+18
|\ \ \ \ \ \ | | | | | | | | | | | | | | TST: reactivate module docstring tests, fix float formatting
| * | | | | | TST: reactivate module docstring tests, fix float formattingmattip2018-04-151-18/+18
| | | | | | |
* | | | | | | Merge pull request #10903 from subhrm/10902-docu-fixCharles Harris2018-04-151-1/+1
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | DOC: Fix link in `See Also` section of `randn` docstring.
| * | | | | | Fixes #10902: Changed `See Also` doc-string section of `randn`Subhendu Ranjan Mishra2018-04-131-1/+1
| | | | | | |
* | | | | | | Merge pull request #10867 from Carreau/link-fullStefan van der Walt2018-04-142-26/+32
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | DOC: Cross-reference full/full_like in a few "See Also" sections.
| * | | | | | | 'remove indirect relationships'Matthias Bussonnier2018-04-092-24/+0
| | | | | | | |
| * | | | | | | Cross Link full/full_like in a few see-also.Matthias Bussonnier2018-04-092-22/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While teaching numpy I was asked the best way to create an array of nan, and `np.full` seem not be cross linked from many places; In particular in the documentation of `zeros` and `ones` seam like obvious candidates to add them. Reorder all the see-also to be - empty_like - ones_like - zero_like - full_like - empty - ones - zeros - full
* | | | | | | | DOC, BUG : Bad link to `np.random.randint` (#10901)Subhendu2018-04-131-1/+1
| |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fixes #10886 : Bad link to `np.random.randint` * Issue #10886: Change from `np.random.randint` to `randint` in 'See Also` doc-string section of mtrand.pyx
* | | | | | | Merge pull request #10665 from pv/accumulate-same-nocopyCharles Harris2018-04-121-3/+9
|\ \ \ \ \ \ \ | |_|_|_|_|_|/ |/| | | | | | ENH: umath: don't make temporary copies for in-place accumulation
| * | | | | | ENH: umath: don't make temporary copies for in-place accumulationPauli Virtanen2018-04-091-3/+9
| | |/ / / / | |/| | | | | | | | | | | | | | | | Do the operation `ufunc.accumulate(x, out=x)` without temporary copies.