summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #12572 from eric-wieser/fix-9647Charles Harris2018-12-175-26/+133
|\ | | | | BUG: Make `arr.ctypes.data` hold onto a reference to the underlying array
| * Merge commit '7ce7382d5eacbc3da026289483a841184a609928' into fix-9647Eric Wieser2018-12-16182-4663/+7109
| |\
| * | BUG: Fix regression in _missing_ctypes.cast that is not tested in CIEric Wieser2018-12-161-1/+1
| | |
| * | BUG: Ensure that arr.ctypes works on arrays with overlapping fieldsEric Wieser2018-12-162-8/+40
| | | | | | | | | | | | These would previously fail in `from_buffer`, since these arrays cannot be used with the buffer protocol.
| * | BUG: Do not duplicate dtype objects when asked to keep the same dtypeEric Wieser2018-12-161-1/+1
| | | | | | | | | | | | If we're setting newtype to oldtype, we already know that oldtype is attached to an array, so should be considered sized.
* | | Merge pull request #12546 from mattip/dtype-err-checkSebastian Berg2018-12-171-0/+9
|\ \ \ | | | | | | | | BUG: check for errors after PyArray_DESCR_REPLACE
| * | | BUG: check for errors after PyArray_DESCR_REPLACEmattip2018-12-171-0/+9
| | | |
* | | | Merge pull request #12544 from mattip/pypy-fixes2Charles Harris2018-12-164-7/+18
|\ \ \ \ | | | | | | | | | | BUG: fix refcount issue caused by #12524
| * | | | BUG: be sure to set returned value to NULLmattip2018-12-161-0/+1
| | | | |
| * | | | MAINT: return Py_None not NULLmattip2018-12-143-4/+7
| | | | |
| * | | | BUG: fix from reviewmattip2018-12-143-8/+3
| | | | |
| * | | | BUG: fix refcount issue caused by #12524mattip2018-12-144-3/+15
| |/ / /
* | | | Revert "Merge pull request #11721 from eric-wieser/fix-9647"Charles Harris2018-12-164-100/+25
| |_|/ |/| | | | | | | | | | | This reverts commit 7ce7382d5eacbc3da026289483a841184a609928, reversing changes made to c52543e4a7d2ab5d1ae4be7364c51965dc4fdb9e.
* | | Merge pull request #11721 from eric-wieser/fix-9647Charles Harris2018-12-164-25/+100
|\ \ \ | | |/ | |/| BUG: Make `arr.ctypes.data` hold onto a reference to the underlying array
| * | MAINT: Use property decorators for clarityEric Wieser2018-11-041-8/+18
| | |
| * | BUG: Make `arr.ctypes.data` hold onto a reference to the underlying arrayEric Wieser2018-10-304-17/+82
| | | | | | | | | | | | | | | | | | | | | | | | We do this by going through ctypes.from_buffer, which keeps the object the buffer came from alive. A bunch of hacks are required to produce a sufficiently simple buffer for ctypes to accept. Fixes #9647
* | | Merge pull request #12555 from juliantaylor/fix-avxCharles Harris2018-12-161-46/+53
|\ \ \ | | | | | | | | BUG: only override vector size for avx code
| * | | BUG: only override vector size for avx codeJulian Taylor2018-12-161-46/+53
| | | | | | | | | | | | | | | | | | | | | | | | only a fraction of code has avx variants so the size must not be overriden globally. Closes gh-12507
* | | | DOC: more doc updates for structured arraysAllan Haldane2018-12-151-0/+9
| | | | | | | | | | | | | | | | [ci skip]
* | | | MAINT: include recfunctions moduleTyler Reddy2018-12-142-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * added lib.recfunctions to refguide PUBLIC_SUBMODULES, as the doctests were otherwise not getting executed * fixed a failing doctest in recfunctions after above activation
* | | | MAINT: >>> # style cleanups requestedTyler Reddy2018-12-143-13/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * reviewer requested that the cases where I switched from free-floating comments to `>>> # comments` be reverted to free-floating in docstrings
* | | | MAINT: addressing review commentsTyler Reddy2018-12-144-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * restored regression comment in numpy/core/defchararray.py * fixed the dimensionality of the z array in all() docstring in numpy/core/fromnumeric.py; this isn't detected because it is in-line with variable memory addresses which are tagged as variable for refguide * byte_bounds() docstring adjusted to reflect non-variable dtype after reviewer requested removal of complex dtype * restore an original comment in matmul docstring, as requested by reviewer
* | | | MAINT: revert numpy/lib/mixins to master branch status -- refguide passes in ↵Tyler Reddy2018-12-141-49/+52
| | | | | | | | | | | | | | | | any case now.
* | | | MAINT: clean up whitespace issues in mtrand.pyx.Tyler Reddy2018-12-141-25/+25
| | | |
* | | | MAINT: matmul docstring marked with SKIP in some places until fixedTyler Reddy2018-12-141-4/+4
| | | |
* | | | MAINT: address several reviewer commentsTyler Reddy2018-12-1414-54/+59
| | | |
* | | | TST, DOC: enable refguide_checkTyler Reddy2018-12-1452-2074/+2218
| |_|/ |/| | | | | | | | | | | | | | | | | | | | * ported the refguide_check module from SciPy for usage in NumPy docstring execution/ verification; added the refguide_check run to Azure Mac OS CI * adjusted NumPy docstrings such that refguide_check passes
* | | Merge pull request #12524 from mattip/pypy-cleanupCharles Harris2018-12-135-21/+46
|\ \ \ | | | | | | | | BUG: fix improper use of C-API
| * | | MAINT: unify error messagesmattip2018-12-142-2/+2
| | | |
| * | | STY: add space after "if"mattip2018-12-131-13/+13
| | | |
| * | | DOC: rearrange comment sequence from reviewmattip2018-12-131-1/+2
| | | |
| * | | STY: bracket if blocks with bracesmattip2018-12-121-2/+4
| | | |
| * | | MAINT: comment, fix from reviewmattip2018-12-102-2/+10
| | | |
| * | | BUG: call PyType_Ready before using typemattip2018-12-102-4/+3
| | | |
| * | | MAINT: call PySequence_Fast() before any other PySequence_Fast* funcsmattip2018-12-102-3/+18
| | | |
* | | | Merge pull request #12526 from mattip/fix-12520Charles Harris2018-12-132-7/+14
|\ \ \ \ | | | | | | | | | | BUG: reorder operations for VS2015
| * | | | STY: add comment for future maintainersmattip2018-12-122-0/+7
| | | | |
| * | | | WIP, BUG: reorder operations for VS2015mattip2018-12-102-7/+7
| | |/ / | |/| |
* | | | Merge pull request #12511 from ahaldane/fix_relaxstride_loopsCharles Harris2018-12-102-6/+44
|\ \ \ \ | | | | | | | | | | BUG: don't check alignment of size=0 arrays (RELAXED_STRIDES)
| * | | | MAINT: don't check alignment size=0 arrays (RELAXED_STRIDES)Allan Haldane2018-12-102-6/+44
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Don't check alignment of size-0 arrays in copy-loops, because of RELAXED_STRIDES. Fixes #12503
* | | | Merge pull request #12528 from ahaldane/fix_reshape_getitemMatti Picus2018-12-111-1/+1
|\ \ \ \ | | | | | | | | | | MAINT: fix an unsafe PyTuple_GET_ITEM call
| * | | | MAINT: fix an unsafe PyTuple_GET_ITEM callAllan Haldane2018-12-101-1/+1
| | | | |
* | | | | Merge pull request #12522 from eric-wieser/fix-build-outputCharles Harris2018-12-102-6/+29
|\ \ \ \ \ | |_|_|/ / |/| | | | BUG: ensure new-lines in compiler error messages are actually printed to the console
| * | | | BUG: ensure new-lines in compiler error messages are actually printed to the ↵Eric Wieser2018-12-092-6/+29
| | |/ / | |/| | | | | | | | | | | | | | | | | | console Previously this would show `b'first_line\nsecond_line'`
* | | | MAINT: Prepare master for 1.17.0 development.Charles Harris2018-12-082-0/+4
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Create 1.17.0-notes - Update index.rst for new notes - Update pavement.py - Update setup.py - Remove Python 2.7 and 3.4 from CI testing. - Add `# cython: language_level=3` to `*.pxd`, `*.pyx` files. Note that this removes support for both Python2.7 and Python3.4 in setup.py.
* | | Merge pull request #12494 from mattip/disallow-dgemmCharles Harris2018-12-073-2/+38
|\ \ \ | |/ / |/| | BUG: test, fix matmul, dot for vector array with stride[i]=0
| * | STY, TST: fix formatting and add tests for other dtypes, unaligned dataCharles Harris2018-12-072-3/+19
| | |
| * | BUG: test, fix matmul, dot for vector array with stride[i]=0mattip2018-12-053-2/+22
| | |
* | | Merge pull request #12388 from mhvk/linspace-allow-arrayCharles Harris2018-12-063-48/+131
|\ \ \ | | | | | | | | ENH: allow arrays for start and stop in {lin,log,geom}space
| * | | DOC: Note the version in which we start supporting array_like start, stopMarten van Kerkwijk2018-12-061-6/+15
| | | |