summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Convert the doctest in `numpy/lib/tests/test_polynomial.py` to ↵Krzysztof Chomski2018-07-141-82/+68
| | | | regular tests. (#GH9416).
* Merge pull request #11084 from mattip/test-documentationRalf Gommers2018-07-131-1/+1
|\ | | | | DOC: link to TESTS.rst.txt testing guidelines document, tweaks
| * DOC: link to TESTS.rst.txt testing guidelines document, tweak testing docsmattip2018-06-251-1/+1
| |
* | Merge pull request #11464 from eric-wieser/monotonicityCharles Harris2018-07-082-1/+123
|\ \ | | | | | | BUG: Don't convert inputs to `np.float64` in digitize
| * | BUG: Don't convert inputs to `np.float64` in digitizeEric Wieser2018-07-062-1/+123
| | | | | | | | | | | | | | | | | | | | | | | | This converts digitize to a pure-python function that falls back on searchsorted. Performance doesn't really matter here anyway - if you care about performance, then you should just call searchsorted directly, rather than checking the order of the bins. Partially fixes gh-11022
* | | Merge pull request #11531 from eric-wieser/histogramdd-density-no-deprecationCharles Harris2018-07-084-20/+42
|\ \ \ | |/ / |/| | ENH: Add density argument to histogramdd.
| * | MAINT: Rename histogramdd's normed argument to density, to match histogramEric Wieser2018-07-084-20/+42
| | | | | | | | | | | | Fixes gh-4371
* | | Merge pull request #11474 from eric-wieser/move-add-new-docsCharles Harris2018-07-021-35/+1
|\ \ \ | | | | | | | | MAINT: Move add_newdocs into core, since it only adds docs to those pieces
| * | | MAINT: Move add_newdocs into core, since it only adds docs to those piecesEric Wieser2018-07-021-35/+1
| | | |
* | | | Merge pull request #11473 from eric-wieser/move-pytesttesterMarten van Kerkwijk2018-07-021-1/+1
|\ \ \ \ | |/ / / | | | | MAINT: Move pytesttester outside of np.testing, to avoid creating unnecessary import dependencies
| * | | MAINT: Move pytesttester outside of np.testing, to avoid creating ↵Eric Wieser2018-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unnecessary import dependencies pytesttester is used by every single subpackage, so making it depend on np.testing just creates cyclic dependencies that can lead to circular imports Relates to #11457
* | | | Merge pull request #11471 from eric-wieser/move-add-new-docsCharles Harris2018-07-011-31/+92
|\ \ \ \ | |/ / / | | | | MAINT: Remove python-side docstrings from add_newdocs.
| * | | MAINT: Remove python-side docstrings from add_newdocs.Eric Wieser2018-07-011-31/+92
| | | | | | | | | | | | | | | | | | | | | | | | From the header comment in add_newdocs, it is only intended for C modules. This also fixes `help(np.mgrid)`, which previously only showed the help for `nd_grid`
* | | | Merge pull request #11396 from pimdh/masterEric Wieser2018-06-291-0/+15
|\ \ \ \ | | | | | | | | | | TST: Added regression test for #11395
| * | | | TST: Added regression test for #11395Pim de Haan2018-06-211-0/+15
| | |_|/ | |/| |
* | | | Merge pull request #11440 from jackvreeken/fix-interp-for-nan-infEric Wieser2018-06-291-0/+14
|\ \ \ \ | |_|/ / |/| | | BUG: fix interpolation with inf and NaN present
| * | | BUG: fix interpolation with inf and NaN presentJack Vreeken2018-06-291-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Values like NaN and inf would result in wrong interpolated values on exactly matching sampling points. To produce the correct behavior, we add an additional check to avoid interpolation when handling such a point. Closes #11439
* | | | Merge pull request #11425 from eric-wieser/where-nonzero-docsMarten van Kerkwijk2018-06-291-0/+8
|\ \ \ \ | |/ / / |/| | | DOC: Clear up confusion between np.where(cond) and np.where(cond, x, y)
| * | | DOC: Clear up confusion between np.where(cond) and np.where(cond, x, y)Eric Wieser2018-06-291-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eliminates all mentions of `np.where(cond)`, instead pointing the reader to np.nonzero. Also changes some example numbers to avoid collisions, making them easier to follow. Some minor doc improvements for np.ma.where too.
* | | | Merge pull request #11347 from mattip/less-sphinx-warningsRalf Gommers2018-06-271-8/+9
|\ \ \ \ | | | | | | | | | | DOC: Silence many sphinx warnings
| * | | | fixes from reviewmattip2018-06-241-8/+8
| | | | |
| * | | | DOC: typos, small fixesmattip2018-06-151-1/+2
| | | | |
* | | | | Merge pull request #11428 from eric-wieser/deprecate-normed-1.15.0Charles Harris2018-06-272-1/+5
|\ \ \ \ \ | |_|/ / / |/| | | | BUG: Fix incorrect deprecation logic for histogram(normed=...) (master)
| * | | | BUG: Fix incorrect deprecation logic for histogram(normed=...)Eric Wieser2018-06-262-1/+5
| | | | | | | | | | | | | | | | | | | | Fixes #11426, which was introduced in #11323 and #11352
* | | | | Merge pull request #11335 from pvanmulbregt/stride123Matti Picus2018-06-251-9/+5
|\ \ \ \ \ | |_|_|/ / |/| | | | DOC: Change array lengths/entries in broadcast_arrays example to reduce confusion.
| * | | | DOC: Change array lengths/entries in an example to reduce confusion.Paul van Mulbregt2018-06-141-9/+5
| | | | |
* | | | | Merge pull request #11373 from eric-wieser/histogramdd-densityCharles Harris2018-06-181-0/+36
|\ \ \ \ \ | | |_|_|/ | |/| | | TST: Show that histogramdd's normed argument is histogram's density
| * | | | TST: Show that histogramdd's normed argument is histogram's densityEric Wieser2018-06-171-0/+36
| | |_|/ | |/| | | | | | | | | | Relevant to gh-4371
* | | | Merge pull request #11371 from eric-wieser/clarify_bin_orderCharles Harris2018-06-181-3/+4
|\ \ \ \ | | | | | | | | | | DOC: Clarify requirement that histogram bins are monotonic.
| * | | | DOC: Clarify requirement that histogram bins are monotonic.Eric Wieser2018-06-171-3/+4
| |/ / / | | | | | | | | | | | | Close gh-631
* | | | Merge pull request #11323 from eric-wieser/histogram-normed-actually-deprecateCharles Harris2018-06-162-29/+59
|\ \ \ \ | | |_|/ | |/| | DEP: Actually deprecate the normed argument to histogram
| * | | DEP: Actually deprecate the normed argument to histogramEric Wieser2018-06-152-29/+59
| |/ / | | | | | | | | | Documenting this argument at such length gives it authenticity it does not deserve.
* | | HTTP -> HTTPS, and other linkrot fixesMike Toews2018-06-165-18/+18
|/ /
* | MAINT: push back multifield copy->view changes to 1.16Allan Haldane2018-06-112-2/+92
| |
* | DOC: make docstring of np.interp clearer (#11280)Jörg Döpfert2018-06-081-2/+2
| | | | | | | | | | | | | | | | | | | | * update docstring of interp() * change "calculate" to "evaluate" to be consistent * remove "values" * make "data points" consistent
* | Merge pull request #11122 from mhvk/assert-array-comparison-with-maskedCharles Harris2018-06-071-0/+4
|\ \ | | | | | | BUG,MAINT: Ensure masked elements can be tested against nan and inf.
| * | MAINT: clean up assert_array_compare a bit further.Marten van Kerkwijk2018-06-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This brought to light two bugs in tests, which are fixed here, viz., that a sample ndarray subclass that tested propagation of an added parameter was incomplete, in that in propagating the parameter in __array_wrap__ it assumed it was there on self, but that assumption could be broken when a view of self was taken (as is done by x[~flagged] in the test routine), since there was no __array_finalize__ defined. The other subclass bug counted, incorrectly, on only needing to provide one type of comparison, the __lt__ being explicitly tested. But flags are compared with __eq__ and those flags will have the same subclass.
* | | Merge pull request #11209 from Peque/doctestCharles Harris2018-06-031-3/+2
|\ \ \ | | | | | | | | DOC: Fix doctest formatting in `rot90()` examples
| * | | DOC: Fix doctest formatting in `rot90()` examplesMiguel Sánchez de León Peque2018-06-011-3/+2
| | | |
* | | | DOC: add existing recfunctions documentation to outputmattip2018-06-011-6/+7
|/ / /
* | | BUG: delimiter/comments in genfromtxt should be encodedAllan Haldane2018-05-302-0/+9
| | | | | | | | | | | | Fixes #11028
* | | Merge branch 'master' into npzfile-mappinEric Wieser2018-05-2920-394/+950
|\ \ \
| * | | BUG: Avoid deprecated non-tuple indexingEric Wieser2018-05-282-2/+11
| | | | | | | | | | | | | | | | np.ogrid was not tested anyway, so this was not caught.
| * | | Merge pull request #11105 from eric-wieser/take_along_axis-strictMarten van Kerkwijk2018-05-282-2/+317
| |\ \ \ | | | | | | | | | | ENH: Add (put|take)_along_axis
| | * | | ENH: Add (put|take)_along_axis as described in #8708Eric Wieser2018-05-252-2/+317
| | |/ / | | | | | | | | | | | | This is the reduced version that does not allow any insertion of extra dimensions
| * | | ENH: Modify intersect1d to return common indices (#10684)Christopher2018-05-252-9/+97
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * added function commonpts1d * Update arraysetops.py * Update arraysetops.py * modified intersect1d to return common indices Proposed this idea in previous pull request (https://github.com/numpy/numpy/pull/10683) and made suggested changes for implementing this idea to have relevant common indices that correspond to the values in the intersection of the two arrays. * update intersect1d with suggested changes * implemented return_indices options for intersect1d I've tested out the above code and for the ~10 different test sets I've tried it's worked thus far. It's probably not the cleanest implementation but it works and is vectorized. * cleaned up structure for intersect1d * fixed copy-paste error, added second test, changed a conditional * Testing return_indices in intersect1d * formatting * created separate test function for intersect1d indices, added spaces after commas * fixed up example and some style * fixed style * style change * removed one example * removed extra space * added version number for return_indices * added 'return_indices' keyword for np.intersect1d * fixed formatting * updated return_indices entry * fixed some typos and style * added bit about first instance of a value being used * STY: Fix comment formats * DOC: missing space * DOC: correct parameter names in docstring * made suggested changes * fixed a mistake from previous update also added documentation for comm1, comm2 to match doc from np.unique * added in tests for 2d inputs * STY: Add missing spaces around commas * TST: Correct array to actually be unique * STY: Spaces at beginning of comments
| * | MAINT: Extract a helper function for prepending and appendingEric Wieser2018-05-221-26/+25
| | | | | | | | | | | | This makes it a little easier to tell the difference between the prepend and append functions
| * | MAINT: np.pad: Generalize the helper function to be used in more placesEric Wieser2018-05-221-12/+15
| | | | | | | | | | | | This makes `_slice_first` almost a factor of two faster
| * | MAINT: np.pad: Add helper functions for producing slices along axesEric Wieser2018-05-221-52/+32
| | |
| * | Merge pull request #11010 from mhvk/poly-matrix-tests-to-matrixlibCharles Harris2018-05-157-124/+64
| |\ \ | | | | | | | | Move remaining Matrix tests to matrixlib