summaryrefslogtreecommitdiff
path: root/numpy/core
Commit message (Collapse)AuthorAgeFilesLines
* BUG: incorrect error fallthrough in nditerAllan Haldane2021-03-022-1/+14
| | | | Fixup to gh-18450
* revert changes to note, add a sentence about fixMatti Picus2021-03-021-3/+3
|
* DOC: trunc, floor, ceil, rint, fix should all link to each other in see alsoTim Hoffmann2021-03-011-7/+8
|
* Merge pull request #18479 from cgohlke/patch-4Matti Picus2021-02-241-1/+6
|\ | | | | BUG: check if PyArray_malloc succeeded
| * Goto done when an error condition is reachedChristoph Gohlke2021-02-241-0/+1
| |
| * BUG: check if PyArray_malloc succeededChristoph Gohlke2021-02-231-1/+5
| |
* | Merge pull request #18476 from cgohlke/patch-1Sebastian Berg2021-02-241-2/+2
|\ \ | | | | | | BUG: Remove suspicious type casting
| * | MAINT: cast Py_ssize_t to intChristoph Gohlke2021-02-231-1/+1
| | |
| * | MAINT: Remove suspicious type castingChristoph Gohlke2021-02-231-1/+1
| |/
* | Merge pull request #18478 from cgohlke/patch-3Sebastian Berg2021-02-231-1/+1
|\ \ | | | | | | BUG: verify pointer against NULL before using it
| * | MAINT: verify pointer against NULL before using itChristoph Gohlke2021-02-231-1/+1
| |/
* | MAINT: remove nonsensical comparison of pointer < 0Christoph Gohlke2021-02-231-1/+1
|/
* Merge pull request #18450 from ahaldane/fix_nditer_od_segfaultSebastian Berg2021-02-224-8/+35
|\ | | | | BUG: Segfault in nditer buffer dealloc for Object arrays
| * BUG: Segfault in nditer buffer dealloc for Object arraysAllan Haldane2021-02-214-8/+35
| |
* | Merge pull request #18404 from seberg/issue-18401Matti Picus2021-02-222-43/+76
|\ \ | |/ |/| BUG: Fix iterator shape in advanced index assignment broadcast error
| * BUG: Fix iterator shape in advanced index assignment broadcast errorSebastian Berg2021-02-122-43/+76
| | | | | | | | | | | | | | The reported shape always missed the transpose operation, this refactors the transpose getting out and applies it in the error path. Closes gh-18401, gh-5710
* | Merge pull request #15392 from seberg/void-no-arr-modificationMatti Picus2021-02-193-81/+153
|\ \ | | | | | | BUG: Remove temporary change of descr/flags in VOID functions
| * | TST: Add test for nonzero and copyswapn (through advanced indexing)Sebastian Berg2021-02-172-0/+45
| | |
| * | BUG: Remove temporary change of descr/flags in VOID functionsSebastian Berg2021-02-171-81/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is done using a hack around stack allocated arrays, which requires some dark magic with respect to the setting the base object (we skip normal arrays and INCREF/DECREF during base setting, which _does_ work for such static arrays, but only if we give them a (not quite) fake refcount of 1 and set the base and their type correctly to PyArrayType. Closes gh-15387
* | | CLN: Add additional castKevin Sheppard2021-02-181-1/+1
| | |
* | | MAINT: Correct code producing warningsKevin Sheppard2021-02-182-2/+2
|/ / | | | | | | | | Cast to avoid warnings Correct function
* | Merge pull request #16588 from SabrinaSimao/np.transpode-documentationMelissa Weber Mendonça2021-02-172-0/+4
|\ \ | | | | | | DOC: unify the docs for np.transpose and ndarray.transpose
| * | DOC: changed the way the link is being used from transpose to ndarray.transposeSabrinaSimao2020-06-122-4/+4
| | | | | | | | | | | | I feel like the `ndarray.transpose` has more details, and it's also called by `transpose`, so i changed the way the link between them was being used
| * | unify the docs for np.transpose and ndarray.transposeSabrinaSimao2020-06-122-0/+4
| | |
* | | Merge pull request #18420 from seberg/override-leaksMatti Picus2021-02-161-0/+7
|\ \ \ | | | | | | | | BUG: Fix tiny memory leaks when `like=` overrides are used
| * | | BUG: Fix tiny memory leaks when `like=` overrides are usedSebastian Berg2021-02-151-0/+7
| | |/ | |/| | | | | | | | | | | | | | | | I thought I had fixed these leaks, but it appears I missed some. We probably should backport this to 1.20.x (its simple), but the leaks are also pretty harmless unless someone uses `like=` hundrets of thousands of times in a running program (and its a new fetaure).
* | | Merge pull request #18405 from mdubravski/correlateFixMelissa Weber Mendonça2021-02-151-0/+6
|\ \ \ | | | | | | | | DOC: Mention `scipy.signal.correlate` and FFT method in `np.correlate`
| * | | Update numpy/core/numeric.pymdubravski2021-02-141-1/+3
| | | | | | | | | | | | Co-authored-by: Matti Picus <matti.picus@gmail.com>
| * | | Update numpy/core/numeric.py mdubravski2021-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | rewording to eliminate redundancy Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
| * | | Update numpy/core/numeric.py mdubravski2021-02-131-2/+1
| | | | | | | | | | | | | | | | | | | | rewording to eliminate redundancy Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
| * | | correlate fixmdubravski2021-02-121-0/+5
| | | |
* | | | Merge pull request #18183 from touqir14/masterMatti Picus2021-02-152-69/+182
|\ \ \ \ | |/ / / |/| | | MAINT: Optimize numpy.count_nonzero for int types using SIMD operations
| * | | fix upSayed Adel2021-02-131-1/+1
| | | |
| * | | cleanupSayed Adel2021-02-131-264/+148
| | | |
| * | | Ensured overflow does not happen for 16 and 32 bit intsTouqir Sajed2021-02-081-8/+26
| | | |
| * | | Modified PyArray_CountNonzero to discriminate between types based on elsizeTouqir Sajed2021-02-081-10/+49
| | | |
| * | | removed the target variable and changed the loop as suggested by Sayed AdelTouqir Sajed2021-02-071-20/+8
| | | |
| * | | another attempt to fix build issuesTouqir Sajed2021-02-071-20/+18
| | | |
| * | | some fixes for the build problemsTouqir Sajed2021-02-071-4/+13
| | | |
| * | | fixed CI errors and optimized further simd_16 and simd_32Touqir Sajed2021-02-071-17/+17
| | | |
| * | | Replaced manual sums with horizontal simd sums for count_nonzero_16/64Touqir Sajed2021-02-051-12/+3
| | | |
| * | | Merge remote-tracking branch 'upstream/master'Touqir Sajed2021-02-0546-526/+711
| |\ \ \
| * | | | Removed commented out code from PyArray_CountNonzeroTouqir Sajed2021-01-191-19/+0
| | | | |
| * | | | Merged count_nonzero_int16/int32/int64 into count_nonzero_int and added ↵Touqir Sajed2021-01-191-140/+66
| | | | | | | | | | | | | | | | | | | | benchmarks
| * | | | Added tests for i1,i2,i4,i8 types for numpy.count_nonzero functionTouqir Sajed2021-01-181-4/+14
| | | | |
| * | | | Added support for SIMD operations for int types in numpy.count_nonzero functionTouqir Sajed2021-01-181-9/+278
| | | | |
* | | | | Merge pull request #18390 from BvB93/einsumCharles Harris2021-02-121-0/+138
|\ \ \ \ \ | | | | | | | | | | | | ENH: Add annotations for `np.core.einsumfunc`
| * | | | | ENH: Add annotations for `np.core.einsumfunc`Bas van Beek2021-02-101-0/+138
| | | | | |
* | | | | | Merge pull request #18339 from melissawm/matmul_docsCharles Harris2021-02-121-2/+2
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | DOC: Discussion on the @ operator and the matrix class
| * | | | | Applying suggestions from PR review.melissawm2021-02-051-1/+1
| | | | | |