summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #11626 from heath730/patch-2Matti Picus2018-07-271-0/+2
|\ | | | | DOC: Show plot in meshgrid example.
| * DOC: Import maplotlib to show contourf in docs.Heath Henley2018-07-271-0/+1
| |
| * DOC: Show plot in meshgrid example.Heath Henley2018-07-271-0/+1
| |
* | Merge pull request #9022 from eric-wieser/reduce-hides-errorMarten van Kerkwijk2018-07-273-123/+179
|\ \ | |/ |/| BUG: don't silence __array_wrap__ errors in ufunc.reduce
| * MAINT: Hoist helper functions to the top of the file so that prototypes are ↵Eric Wieser2018-06-121-137/+135
| | | | | | | | | | | | not needed The functions themselves have not changed, only moved
| * BUG/MAINT: Handle errors in __array_wrap__ the same way in ufunc.reduce as ↵Eric Wieser2018-06-123-18/+30
| | | | | | | | | | | | in ufunc.__call__ Previously they were silenced
| * MAINT: Extract a helper function to apply __array_wrap__Eric Wieser2018-06-101-33/+79
| |
* | DOC: Use "real symmetric" rather than "symmetric" in ``eigh`` and ↵Juan Azcarreta2018-07-261-11/+16
| | | | | | | | | | | | | | | | ''eigvalsh" docs. (#11621) Change the documentation of inputs from "symmetric or Hermitian" to "real symmetric or complex Hermitian" for eigh and eigvalsh. [ci skip]
* | MAINT,DEP: Properly implement ndarray.__pos__Marten van Kerkwijk2018-07-265-9/+93
| | | | | | | | | | | | For regular arrays, we now give a deprecation warning if np.positive cannot handle it; for ndarray subclasses that override __array_ufunc__, we pass on the type error.
* | BUG: is_complex should explicitly change an array scalar to scalar.Marten van Kerkwijk2018-07-261-1/+1
| | | | | | | | Rather than rely on +array doing that for it.
* | Merge pull request #11601 from eric-wieser/list-ctorCharles Harris2018-07-222-32/+64
|\ \ | | | | | | BUG: Make np.array([[1], 2]) and np.array([1, [2]]) behave in the same way
| * | TST: Add a test of jagged array constructionEric Wieser2018-07-221-0/+18
| | |
| * | BUG: Make np.array([[1], 2]) and np.array([1, [2]]) behave in the same wayEric Wieser2018-07-222-19/+34
| | |
| * | MAINT: Eliminate intermediate variable for consistencyEric Wieser2018-07-221-15/+12
| | | | | | | | | | | | Also tidy line-wrapping
| * | MAINT: Improve variable names and scope in discover_dimensionsEric Wieser2018-07-221-6/+8
| | |
* | | BLD: Modify cpu detection and function to get build working on aarch64 (#11568)Kyle Sunden2018-07-152-19/+49
| | | | | | | | | BLD: Modify cpu detection and printing to get working aarch64 build
* | | Merge pull request #11572 from logeaux/indexing-docMatti Picus2018-07-141-1/+1
|\ \ \ | | | | | | | | DOC: Updated Slice Description
| * | | DOC: Updated Slice Descriptionlogeaux2018-07-141-1/+1
| | | |
* | | | DOC: Updated array2string description (#11571)logeaux2018-07-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | * DOC: Updated array2string description * DOC: Updated array2string description
* | | | Merge pull request #11556 from sh0nk/fix-assert_string_equalCharles Harris2018-07-142-2/+8
|\ \ \ \ | | | | | | | | | | BUG: Make assert_string_equal check str equality simply without regex
| * | | | BUG: Make assert_string_equal check str equality simply without regexSho Nakamura2018-07-142-2/+8
| | | | |
* | | | | MAINT: Convert the doctest in `numpy/lib/tests/test_polynomial.py` to ↵Krzysztof Chomski2018-07-141-82/+68
| |/ / / |/| | | | | | | | | | | regular tests. (#GH9416).
* | | | Merge pull request #11382 from mattip/remove-typeNARalf Gommers2018-07-133-6/+27
|\ \ \ \ | | | | | | | | | | DEP: deprecate undocumented, unused dtype type dicts
| * | | | DEP: deprecate undocumented, unused dtype type dictsmattip2018-07-133-6/+27
| | | | |
* | | | | 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 #11525 from isuruf/ldflagsRalf Gommers2018-07-133-34/+84
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | Append *FLAGS instead of overriding
| * | | | | Simplify logicIsuru Fernando2018-07-081-11/+2
| | | | | |
| * | | | | convert env variable flags and fix LDSHAREDIsuru Fernando2018-07-082-3/+7
| | | | | |
| * | | | | Remove redundant codeIsuru Fernando2018-07-071-2/+0
| | | | | |
| * | | | | Move distutils.environment.py to distutils.fcompilerIsuru Fernando2018-07-072-1/+2
| | | | | |
| * | | | | Use monkeypatch's setenv, getenvIsuru Fernando2018-07-071-8/+7
| | | | | |
| * | | | | Test distutils flags appendingIsuru Fernando2018-07-071-0/+47
| | | | | |
| * | | | | Change default to overrideIsuru Fernando2018-07-071-1/+1
| | | | | |
| * | | | | Fix var being NoneIsuru Fernando2018-07-071-0/+2
| | | | | |
| * | | | | Append *FLAGS instead of overridingIsuru Fernando2018-07-072-33/+41
| | |/ / / | |/| | |
* | | | | DOC: Update examples with new MaskedArray.__repr__Eric Wieser2018-07-091-9/+9
| | | | |
* | | | | DOC: Add missing reference to blockEric Wieser2018-07-091-0/+1
| |_|/ / |/| | |
* | | | Merge pull request #11518 from mhvk/normalize-axis-tuple-speedupMarten van Kerkwijk2018-07-091-5/+8
|\ \ \ \ | | | | | | | | | | MAINT: Speed up normalize_axis_tuple by about 30%
| * | | | MAINT: Restore previous behavior on subclassesEric Wieser2018-07-081-2/+2
| | | | |
| * | | | MAINT: Speed up normalize_axis_tuple by about 30%Marten van Kerkwijk2018-07-061-5/+8
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is used in `np.moveaxis`, which is relatively slow. Timings change as follows: ``` import numpy as np from numpy.core.numeric import normalize_axis_tuple %timeit normalize_axis_tuple([0, 1, 2], 4, 'parrot') a = np.zeros((10,20,30)) %timeit np.moveaxis(a, [0,1,2], [2,1,0]) 100000 loops, best of 3: 5.56 µs per loop -> 4.17 µs ```
* | | | Merge pull request #11482 from Anner-deJong/patch-1Charles Harris2018-07-081-0/+10
|\ \ \ \ | | | | | | | | | | DOC: Include warning in np.resize() docs
| * | | | removed spaces. improved right side outliningAnner2018-07-061-4/+4
| | | | |
| * | | | Update resize notes according to mattip's commentsAnner2018-07-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | removed 'simple' altered sentence describing which items are taken from `old` into `new` therefor -> therefore
| * | | | include warning in np.resize() docsAnner2018-07-031-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I find it counterintuitive that resizing a numpy array does NOT consider dimensions independent, but simply takes the first N elements of the input array that fit into the output array. I was expecting something more like `cv2.resize()` where axes are treated separately, and some form of interpolation is applied to each dimension. numpy resizes an old 5x5x2 array into a new array with new = np.resize(old, (4, 4, 2)) by simply copying the first 4 * 4 * 2 entries from old into new. (e.g. old[0, 4, :] becomes new[1, 0, :]) This is a problem if we would like simple interpolation, or if different axes represent different entities. (If the above example is an image, the top right most pixel would get warped all the way to the left, which is most likely not the intention) In response to my issue #11478: 'resize() is unintuitive by not treating axes separately?' A warning in the docs might prevent some confusion. For a discussion on the issue and a possible solution, see <https://github.com/numpy/numpy/issues/11478>
* | | | | Merge pull request #11533 from aifer4/fixed-cheb-examplesCharles Harris2018-07-081-2/+2
|\ \ \ \ \ | | | | | | | | | | | | DOC: Fixed example code for cheb2poly and poly2cheb (see #11519)
| * | | | | DOC: Fixed example code for cheb2poly and poly2cheb (see #11519)Max Aifer2018-07-081-2/+2
| | | | | |
* | | | | | Merge pull request #11464 from eric-wieser/monotonicityCharles Harris2018-07-086-186/+156
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: Don't convert inputs to `np.float64` in digitize
| * | | | | | BUG: Don't convert inputs to `np.float64` in digitizeEric Wieser2018-07-066-186/+156
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.