summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* DOC: Add to doc that interp cannot contain NaN (#14598)Zijie (ZJ) Poh2019-10-151-3/+7
| | | | | Address gh-13919 by adding to documentation that xp cannot contain NaN because its input is required to be sorted. Closes gh-13919
* Merge pull request #12633 from seberg/f2py-refcntMatti Picus2019-10-158-98/+179
|\ | | | | BUG: General fixes to f2py reference counts (dereferencing)
| * BUG: Further, followup f2py reference count fixesSebastian Berg2019-08-195-16/+53
| | | | | | | | | | | | | | | | Note that the extension module dict seems to be never dereferenced (there is an additional reference to it kept around somewhere). This reference seems to part of the C python module loading (possibly intentionally), and I could not find how to remove it or where it originates from.
| * BUG: General fixes to f2py reference counts (dereferencing)Sebastian Berg2019-08-195-82/+126
| |
* | Merge pull request #14368 from jdufresne/byteswarningSebastian Berg2019-10-154-9/+19
|\ \ | | | | | | MAINT: Avoid BytesWarning in PyArray_DescrConverter()
| * | MAINT: Avoid all BytesWarningJon Dufresne2019-09-254-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | A BytesWarning can be emitted when bytes are and strings are mismatched. Catching BytesWarning ensures a better boundary between str and bytes type. The test suite is now run with the -b flag to emit this warning. Fixes #9308
| * | MAINT: Explicitly goto fail when PyUnicode_FromEncodedObject() return NULLJon Dufresne2019-09-251-3/+4
| | | | | | | | | | | | Makes the code a bit more explicit and readable in intent.
* | | Merge pull request #13885 from r-devulap/sqrt-sq-rcp-abs-avxMatti Picus2019-10-155-60/+668
|\ \ \ | | | | | | | | ENH: use AVX for float32 and float64 implementation of sqrt, square, absolute, reciprocal, rint, floor, ceil and trunc
| * | | MAINT: removing duplicated inner loop for e->eRaghuveer Devulapalli2019-09-271-4/+4
| | | |
| * | | MAINT: rebase with masterRaghuveer Devulapalli2019-09-271-4/+4
| | | |
| * | | TEST: disable raise invalid exception test for sqrtRaghuveer Devulapalli2019-09-271-3/+3
| | | |
| * | | ENH: use AVX for floor, rint, ceil and truncRaghuveer Devulapalli2019-09-275-11/+146
| | | |
| * | | BUG: ignore invalid exception raised by absoluteRaghuveer Devulapalli2019-09-271-0/+1
| | | | | | | | | | | | | | | | | | | | clang6 generates an invalid exception when computing abs value of +/-np.nan.
| * | | BUG: fixing multiple CI failuresRaghuveer Devulapalli2019-09-272-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (1) Workaround for bug in clang6: added missing GCC attribute to the prototype of ISA_sqrt_TYPE function which otherwise leads to a weird build failure in clang6 (gcc and clang7.0 doesnt have this issue) (2) Changed np.float128 to np.longdouble in tests: NumPy in windows doesn't support the np.float128 dtype (3) GCC 4.8/5.0 doesn't support _mm512_abs_ps/pd intrinsic
| * | | ENH: use AVX for sqrt, square, reciprocal and absolute valueRaghuveer Devulapalli2019-09-275-51/+520
| | | |
* | | | Merge pull request #14682 from seberg/finish-out-kwarg-deprecationsMatti Picus2019-10-142-43/+12
|\ \ \ \ | | | | | | | | | | DEP: ufunc `out` argument must be a tuple for multiple outputs
| * | | | DEP: ufunc `out` argument must be a tuple for multiple outputsSebastian Berg2019-10-112-43/+12
| | | | | | | | | | | | | | | | | | | | | | | | | This finishes a deprecation started in NumPy 1.10. when the support for providing multiple output arguments was added.
* | | | | Merge pull request #14634 from dstansby/extension-docRalf Gommers2019-10-121-1/+17
|\ \ \ \ \ | | | | | | | | | | | | DOC: Create `class Extension` docstring and add it to documentation.
| * | | | | Add Extension to docsDavid Stansby2019-10-031-1/+17
| | | | | |
* | | | | | Merge pull request #14630 from mattip/build_src-optionCharles Harris2019-10-111-4/+4
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | BUILD: change to build_src --verbose-cfg, runtests.py --debug-info
| * | | | | BUILD: change to build_src --verbose-cfg, runtests.py --debug-infomattip2019-10-031-4/+4
| | | | | |
* | | | | | Merge pull request #14656 from eric-wieser/tidy-datetime-moduloMatti Picus2019-10-101-138/+101
|\ \ \ \ \ \ | | | | | | | | | | | | | | MAINT: Use `extract_unit` throughout datetime
| * | | | | | MAINT: Use `extract_unit` throughout datetimeEric Wieser2019-10-091-138/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This eliminates a lot of duplicate work to handle the difference between C and python modulo. `extract_unit` has been moved to the top of the file, and has been split into identical 32- and 64-bit variants.
* | | | | | | Merge pull request #14657 from pv/fix-fromfileMatti Picus2019-10-102-6/+37
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | BUG: fix fromfile behavior when reading sub-array dtypes
| * | | | | | | BUG: Fix dtype use-after-free bug in FromStringSebastian Berg2019-10-081-1/+6
| | | | | | | |
| * | | | | | | BUG: fix fromfile behavior when reading sub-array dtypesPauli Virtanen2019-10-072-5/+31
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restore previous behavior of fromfile, by ensuring the original dtype is used for reading, instead of the type of the created array which may have sub-arrays collapsed. Reverts parts of 454c5b5e9a76809a4ab60bda30aa048ec37ee11e
* | | | | | | BUG: random: Use correct length when axis is given to shuffle.Warren Weckesser2019-10-082-3/+12
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When an axis argument was given, shuffle was using the original length of the array instead of the length of the given axis. This meant that, for example, if an array with shape (2, 10) was shuffled with axis=1, only the first two columns were shuffled.
* | | | | | Merge pull request #14605 from mattip/descr-checkMatti Picus2019-10-071-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: properly define PyArray_DescrCheck{,Exact}
| * | | | | | BUG: properly define PyArray_DescrCheckmattip2019-09-271-1/+1
| | |_|/ / / | |/| | | |
* | | | | | DOC: add `printoptions` as a context manager to `set_printoptions` (#14636)Eugene Prilepin2019-10-061-1/+10
| | | | | | | | | | | | | | | | | | DOC: add `printoptions` as a context manager to `set_printoptions`
* | | | | | Merge pull request #14643 from seberg/scalar-powerMatti Picus2019-10-051-54/+6
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | MAINT: Use scalar math power function directly
| * | | | | MAINT: Use scalar math power function directlySebastian Berg2019-10-041-54/+6
| |/ / / / | | | | | | | | | | | | | | | | | | | | The very old code loaded them dynamically from the ufunc during runtime. This is not how we usually do it.
* | | | | Merge pull request #14596 from sethtroisi/old_defines_in_docsMatti Picus2019-10-035-72/+26
|\ \ \ \ \ | | | | | | | | | | | | DEP: Complete deprecation of invalid array/memory order
| * | | | | DEP: Complete deprecation of invalid array orderSeth Troisi2019-09-265-72/+26
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | Fixed order=FORTRAN in docs Added release snippet
* | | | | Merge pull request #14631 from sethtroisi/free_cleanMatti Picus2019-10-031-2/+2
|\ \ \ \ \ | | | | | | | | | | | | BUG: always free clean_sep
| * | | | | BUG: always free clean_sepSeth Troisi2019-10-021-2/+2
| | |_|/ / | |/| | |
* | | | | Merge pull request #14620 from sethtroisi/cleanup_deprecate_indexMatti Picus2019-10-033-35/+9
|\ \ \ \ \ | | | | | | | | | | | | DEP: Finish deprecation of non-integer `num` in linspace
| * | | | | Dep: Deprecation of float index in linespaceSeth Troisi2019-10-013-35/+9
| | |_|/ / | |/| | |
* | | | | BUG: dtype refcount cleanups (#14586)Matti Picus2019-10-032-22/+16
| |/ / / |/| | | | | | | * BUG: dtype reference count cleanup
* | | | DOC misleading np.sinc() documentationSamesh Lakhotia2019-10-021-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The documentation currently states "It works in 2-D as well" with attached example not correct. closes #14466
* | | | Merge pull request #14616 from madphysicist/comment-correctionSebastian Berg2019-10-011-4/+6
|\ \ \ \ | | | | | | | | | | DOC: Updated sphinx directive formatting
| * | | | DOC: Updated sphinx directive formattingJoseph R. Fox-Rabinovitz2019-09-301-4/+6
| |/ / /
* | | | DOC: s/OR/AND/ in np.logical_and docstringSeth Troisi2019-10-011-1/+1
|/ / /
* | | BLD: remove unused functions, rearrange headers (from CC=clang) (#14534)Matti Picus2019-09-268-54/+49
| | | | | | | | | | | | | | | * BUILD: remove unused functions, rearrange headers (from CC=clang) * MAINT: check enum at API call, not in provate function
* | | Merge pull request #14583 from mattip/select-deprecationSebastian Berg2019-09-262-38/+10
|\ \ \ | |/ / |/| | DEP: remove deprecated select behaviour
| * | DEP: remove expired deprecation in selectmattip2019-09-232-38/+10
| | |
* | | Merge pull request #14573 from rgommers/remove-info-filesMatti Picus2019-09-2512-360/+109
|\ \ \ | | | | | | | | DOC: update submodule docstrings, remove info.py files
| * | | MAINT: remove unused numpy/f2py/info.py fileRalf Gommers2019-09-222-7/+0
| | | |
| * | | DOC: clean up numpy.lib docstring, remove numpy/lib/info.pyRalf Gommers2019-09-223-162/+13
| | | |
| * | | DOC: add up-to-date numpy.linalg docstring, remove info.py fileRalf Gommers2019-09-223-81/+67
| | | | | | | | | | | | | | | | | | | | | | | | Docstring isn't used to render the html docs, that is controlled by ``routines.linalg.rst``. Still good to bring the contents of function listings of the module docstring in line with that file.