summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | 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
| | * | | | MAINT: move matrix tests in lib to matrixlib.Marten van Kerkwijk2018-04-297-124/+64
| | | | | |
| * | | | | Merge pull request #11094 from mattip/fix-11080Charles Harris2018-05-152-7/+6
| |\ \ \ \ \ | | | | | | | | | | | | | | DOC: add numpy.lib.format to docs and link to it
| | * | | | | DOC: add numpy.lib.format to docs and link to itmattip2018-05-142-7/+6
| | | | | | |
| * | | | | | Merge pull request #11023 from eric-wieser/histogramdd-no-fuzzCharles Harris2018-05-143-26/+49
| |\ \ \ \ \ \ | | |/ / / / / | |/| | | | | BUG: np.histogramdd loses precision on its inputs, leading to incorrect results
| | * | | | | BUG: histogramdd fails on large integersEric Wieser2018-04-302-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is due to gh-11022.
| | * | | | | ENH: Disable fuzzing on histogram boundariesEric Wieser2018-04-303-25/+35
| | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously a fuzzy rounded comparison was used for the rightmost bin of histogramdd. It's not clear why this was done, and it resulted in surprising behavior. This also removes the restriction that bin edges must be floats, and allows integer arrays to be passed (and returned) Fixes gh-10864
| * | | | | Merge pull request #11085 from mattip/fix-11080Eric Wieser2018-05-132-3/+6
| |\ \ \ \ \ | | | | | | | | | | | | | | DOC: create label and ref, fixes broken link
| | * | | | | DOC: create label and ref, fixes broken linkmattip2018-05-132-3/+6
| | | | | | |
| * | | | | | Merge pull request #11011 from eric-wieser/pad-singletonCharles Harris2018-05-131-109/+34
| |\ \ \ \ \ \ | | |/ / / / / | |/| | | | | MAINT: Simplify dimension-juggling in np.pad
| | * | | | | MAINT: Use keepdims in favor of re-inserting dimensionsEric Wieser2018-04-291-48/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is safe, because the arguments are always base-class ndarrays, so `keepdims` is guaranteed to be supported
| | * | | | | MAINT: Remove singleton-dimension insertion in np.pad in favor of not losing ↵Eric Wieser2018-04-291-61/+18
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the dimension in the first place. `arr[:,:,0,:,:].reshape(arr.shape[:2] + (1,) + arr.shape[3:])` is much more readable as `arr[:,:,0:1,:,:]` (and easier for subclasses to handle)
| * | | | | DOC: link to updated module docstring, not NEPmattip2018-05-132-12/+13
| | | | | |
| * | | | | DOC: Add explanation for comments=None in loadtxt.Hong Xu2018-05-061-2/+2
| | | | | |
| * | | | | MAINT: Simplify workflow in _append_const and _prepend_constLars G2018-05-021-12/+4
| | | | | |
| * | | | | BUG: Fix padding with large integersLars G2018-05-022-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old way of creating the padded array padded with wrong values for large integers because the new prepended / appended array was implicitly created with dtype float64: >>> (np.zeros(1) + (2 ** 64 - 1)).astype(np.uint64) array([0], np.uint64) >>> (np.zeros(1) + (2 ** 63 - 1)).astype(np.int64) array([-9223372036854775808])
| * | | | | MAINT: Misc. typos (#11005)luzpaz2018-04-304-7/+7
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | User- and non-user-facing typos. Some source typos fixes as well. Found via `codespell`.
| * | | | DOC: Make doc examples using StringIO python2-3 compatibleAndras Deak2018-04-272-7/+7
| |/ / /
| * | | 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 #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 branch 'master' into npzfile-mappinEric Wieser2018-04-2234-569/+754
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Merge pull request #10891 from eric-wieser/assert-no-cyclesCharles Harris2018-04-211-11/+2
| |\ \ \ \ \ | | | | | | | | | | | | | | TST: Extract a helper function to test for reference cycles
| | * | | | | TST: Extract a helper function to test for reference cyclesEric Wieser2018-04-121-11/+2
| | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 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