summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | 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.
* | | | | | | Merge pull request #9980 from eric-wieser/linalg-lstsq-ufuncMarten van Kerkwijk2018-04-115-94/+5214
|\ \ \ \ \ \ \ | | |_|_|_|/ / | |/| | | | | MAINT: Implement `lstsq` as a `gufunc`
| * | | | | | MAINT: Move lstsq to umath_linalgEric Wieser2018-04-101-50/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This does not yet enable any broadcasting, but makes doing so in future far easier.
| * | | | | | ENH: Add raw ufuncs to interface to gelsd functionsEric Wieser2018-04-101-8/+94
| | | | | | |
| * | | | | | ENH: Add wrapper functions to allocate workspacesEric Wieser2018-04-101-0/+308
| | | | | | |
| * | | | | | ENH: Add missing cgelsd and sgelsd routineslapack_lite code generator2018-04-104-36/+4798
| | |_|/ / / | |/| | | |
* | | | | | Merge pull request #10745 from eric-wieser/comparison-object-loopMarten van Kerkwijk2018-04-115-21/+61
|\ \ \ \ \ \ | |/ / / / / |/| | | | | ENH: Add object loops to the comparison ufuncs
| * | | | | ENH: Add object loops to the comparison ufuncsEric Wieser2018-04-085-21/+61
| | | | | | | | | | | | | | | | | | | | | | | | This helps solve RobotLocomotion/drake#8315
* | | | | | DOC: State in docstring that lexsort is stable (#10873).Pierre Chanial2018-04-101-1/+1
| |_|_|_|/ |/| | | |
* | | | | ENH: Improve histogram bins="auto" for data with little variance (#10739)Varun Nayyar2018-04-092-9/+40
| | | | | | | | | | | | | | | Now falls back on sturges estimator when the IQR is zero
* | | | | BUG: Fix encoding regression in ma/bench.py (Issue #10868)Jonathan March2018-04-091-0/+2
| | | | |
* | | | | Merge pull request #10860 from pv/pypyfix-npy-title-keyCharles Harris2018-04-092-2/+39
|\ \ \ \ \ | |_|/ / / |/| | | | BUG: core: fix NPY_TITLE_KEY macro on pypy
| * | | | BUG: core: fix NPY_TITLE_KEY macro on pypyPauli Virtanen2018-04-082-2/+39
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Pypy, dictionary keys do not necessarily preserve object identity. This however was assumed by the NPY_TITLE_KEY macro, which relies on descriptor.c:568 using the same 'title' object both as a dictionary key as an entry in the tuple inserted. Since the items in the field dict are unique, value identity is however sufficient for the NPY_TITLE_KEY macro. On PyPy, fix the macro by comparing values instead.
* | | | Merge pull request #10796 from juliantaylor/inplace-overlapCharles Harris2018-04-091-4/+16
|\ \ \ \ | |_|/ / |/| | | BUG: fix wrong inplace vectorization on overlapping arguments
| * | | BUG: fix wrong inplace vectorization on overlapping argumentsJulian Taylor2018-03-251-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The input arguments to inplace operations can overlap for accumulate operatation where out[i+1] = in[i] + out[i] This breaks the no loop carried dependency assumptions the compiler has due to the ivdep pragma that is required for GCC to vectorize the loop. Currently this does not harm as accumulate operations are out of place, but future enhancements may change that. Fix this by verifying the arguments do not overlap within a hardware vector size. As we do not know the vector size of future machines use an extremely large value of 1024 bytes (commodity hardware currently has at most 64 bytes)
* | | | Merge pull request #10859 from charris/remove-yield-testsCharles Harris2018-04-094-222/+219
|\ \ \ \ | | | | | | | | | | MAINT: Remove yield tests
| * | | | TST: Remove yield tests from core/tests/test_umath_complex.py.Charles Harris2018-04-081-64/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Just replaces yields with normal function calls. Some of these tests could be parametrized with a bit of reorganization, however, the comments in the tests would have been lost and they seemed worth keeping.
| * | | | STY: Some PEP8 fixes in lib/tests/test_twodim_base.py.Charles Harris2018-04-081-16/+17
| | | | |
| * | | | TST: Remove yield tests in lib/tests/test_twodim_base.py.Charles Harris2018-04-081-12/+12
| | | | |