summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | | | Merge pull request #11097 from shoyer/timedelta-unitsEric Wieser2018-05-262-2/+23
| |\ \ \ \ \ \ \ \ \ \ \ | | |_|_|/ / / / / / / / | |/| | | | | | | | | | BUG: fix datetime.timedelta->timedelta64 unit detection logic
| | * | | | | | | | | | TST: Add extra regression tests for gh-11096Eric Wieser2018-05-241-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conversion from timedelta was only reliably broken for integer numbers of weeks (including 0)
| | * | | | | | | | | | TST: test for timedelta coersionStephan Hoyer2018-05-241-1/+4
| | | | | | | | | | | |
| | * | | | | | | | | | BUG: fix datetime.timedelta->timedelta64 unit detection logicStephan Hoyer2018-05-231-1/+4
| | | | | | | | | | | |
| | * | | | | | | | | | TST: regression test for gh-6452Stephan Hoyer2018-05-231-1/+10
| | | | | | | | | | | |
| * | | | | | | | | | | BUG: __copy__ and __deepcopy__ should preserve MaskedConstant (#11038)Kritika Jalan2018-05-252-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #11021
| * | | | | | | | | | | 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
| * | | | | | | | | | | Merge pull request #11159 from mattip/skip-ctypes-issueCharles Harris2018-05-251-0/+1
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | TST: Skip ctypes dependent test that fails on Python < 2.7.7.
| | * | | | | | | | | | | TST: skip ctypes memoryview issue on old pythonmattip2018-05-241-0/+1
| | | | | | | | | | | | |
| * | | | | | | | | | | | Merge pull request #11160 from mattip/windows-exceptionsEric Wieser2018-05-251-1/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ / / / / / | |/| | | | | | | | | | | TST: windows builds now properly support floating error states
| | * | | | | | | | | | | TST: windows builds now properly support floating error statesmattip2018-05-241-1/+0
| | |/ / / / / / / / / /
| * | | | | | | | | | | BUG: time is lost from datetime.datetime when converting to datetime64 (#11149)Matti Picus2018-05-242-11/+18
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | datetime.datetime is a subclass of datetime.date, so it needs to be checked against first Fixes #11106
| * | | | | | | | | | TST: disable gc in refcount test (#11158)Matti Picus2018-05-241-5/+9
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The vectorize version of this test was failing consistently on several of the Appveyor builds, ever since a recent pytest upgrade. Our theory is that by random chance, things changed so that during the call to vectorize(op).__call__, python started running a garbage collection, which perturbed the refcounts that this test is checking. (Specifically this test is doing a weird thing and checking that the refcount of the object 1 doesn't decrease, and it's very plausible that some random bit of garbage was holding a reference to this object.) Disabling the gc during the test makes this kind of refcount assertion more reliable, and seems to have fixed the appveyor builds, so I guess it's good.
| * | | | | | | | | Merge pull request #11134 from bashtage/doc-tofileCharles Harris2018-05-231-0/+5
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | DOC: Clarify tofile requirements
| | * | | | | | | | | DOC: Clarify tofile requirementKevin Sheppard2018-05-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clarify that tofile requires a file that can be directly written to and not a general file-like object
| * | | | | | | | | | Merge pull request #11141 from eric-wieser/refactor-padCharles Harris2018-05-231-26/+25
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | MAINT: Extract a helper function for prepending and appending
| | * | | | | | | | | | 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
| * | | | | | | | | | | Merge pull request #11012 from eric-wieser/pad-slice-helpersMarten van Kerkwijk2018-05-221-60/+43
| |\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / | | | | | | | | | | | | MAINT: np.pad: Add helper functions for producing slices along axes
| | * | | | | | | | | | 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
| | | |/ / / / / / / / | | |/| | | | | | | |
| * | | | | | | | | | MAINT: move remaining MaskedArray matrix tests to matrixlib.Marten van Kerkwijk2018-05-222-16/+21
| | |/ / / / / / / / | |/| | | | | | | |
| * | | | | | | | | BUG: Ensure that fully masked arrays pass assert_array_equal.Marten van Kerkwijk2018-05-192-1/+23
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The underlying problem is that ma.all() evaluates to masked, which is falsy, and thus triggers test failures.
| * | | | | | | | Merge pull request #11098 from mhvk/gufunc-keepdimsMarten van Kerkwijk2018-05-182-39/+186
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | ENH: Add keepdims argument for generalized ufuncs.
| | * | | | | | | | ENH: Add keepdims argument for generalized ufuncs.Marten van Kerkwijk2018-05-182-39/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The argument can only be used if all inputs share the same number of core dimension, and no output has any core dimensions.
| * | | | | | | | | BUG: Fix typo in variable name (#11116)zuko3d2018-05-181-1/+1
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Typo fix in variable name in core/numeric/binary_repr/warn_if_insufficient. This only worked before because it used binwidth from the outer namespace.
| * | | | | | | | Merge pull request #11026 from mattip/cleanup-frompyfuncEric Wieser2018-05-182-58/+35
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | MAINT: reduce code duplication in ufunc_frompyfunc
| | * | | | | | | | MAINT: reduce code duplication in ufunc_frompyfuncmattip2018-05-172-58/+35
| | | |/ / / / / / | | |/| | | | | |
| * | | | | | | | BUG: fix case of ISA selector in ufunc selectionJulian Taylor2018-05-171-1/+1
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function expects lowercase so we accidentally turned of avx support completely.
| * | | | | | | BUG: remove fast scalar power for arrays with object dtype (#11050)fivemok2018-05-152-1/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #11047 If objects want to optimize `x**2` as `x*x`, they can do it inside their own `__pow__`, rather than relying on numpy to do it.
| * | | | | | | Merge pull request #11010 from mhvk/poly-matrix-tests-to-matrixlibCharles Harris2018-05-1520-253/+476
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Move remaining Matrix tests to matrixlib
| | * | | | | | | DOC: Revise some of the docstrings.Charles Harris2018-05-141-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | [ci skip]
| | * | | | | | | BUG: Fix missing `type` in identity test.Charles Harris2018-05-141-1/+1
| | | | | | | | |
| | * | | | | | | MAINT: move matrix tests in testing to matrixlib.Marten van Kerkwijk2018-04-292-31/+43
| | | | | | | | |
| | * | | | | | | MAINT: move matrix tests in lib to matrixlib.Marten van Kerkwijk2018-04-298-127/+233
| | | | | | | | |
| | * | | | | | | MAINT: move matrix tests in core, polynomial to matrixlib.Marten van Kerkwijk2018-04-2912-98/+202
| | | | | | | | |
| * | | | | | | | DOC: Mention we can return unitinitialized values (#11086)Matti Picus2018-05-151-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DOC: mention we can return unitinitialized values * squash and rebase, extend explanation and improve docstring template * MAINT: Spelling fixes for docstrings. [ci skip] * MAINT: Update following feedback.
| * | | | | | | | Merge pull request #11091 from ahaldane/fix_py2_float_to_fileCharles Harris2018-05-152-4/+36
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | BUG: Python2 doubles don't print correctly in interactive shell
| | * | | | | | | | BUG: Python2 doubles don't print correctly in interactive shellAllan Haldane2018-05-142-4/+36
| | | |_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | Fixes #11031
| * | | | | | | | 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 branch 'master' into linalg-move-matrix-powerCharles Harris2018-05-1438-673/+685
| |\ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ Merge pull request #10988 from eric-wieser/ufunc-tidyMarten van Kerkwijk2018-05-141-17/+15
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | MAINT: Small tidy-ups to ufunc_object.c
| | | * | | | | | | | MAINT: Push variables down into nested scopes where possibleEric Wieser2018-04-261-2/+3
| | | | | | | | | | |
| | | * | | | | | | | MAINT: Convert nested ifs to an if/else chainEric Wieser2018-04-261-15/+12
| | | | | | | | | | |
| | * | | | | | | | | 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