summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #13724 from mattip/error-cleanupMatti Picus2019-06-072-7/+2
|\ | | | | MAINT: fix use of cache_dim and 3->2 fix leftover from removing PyArray_MASKNA_STRIDES
| * MAINT: fix use of cache_dimmattip2019-06-062-7/+2
| |
* | Merge pull request #13703 from kritisingh1/baseMatti Picus2019-06-071-0/+35
|\ \ | | | | | | DOC: Adds documentation for numpy.dtype.base
| * | DOC: Adds documentation for numpy.dtype.basekritisingh12019-06-041-0/+35
| | |
* | | MAINT: Change wrap_int definition to use maskKevin Sheppard2019-06-061-5/+2
| | |
* | | CLN: Remove trailing white spaceKevin Sheppard2019-06-063-10/+10
| | | | | | | | | | | | Remove all trailing white spaces in pyx files
* | | MAINT: Update PCG jump sizesKevin Sheppard2019-06-067-14/+70
| |/ |/| | | | | | | Update pcg jump sizes Wrap advance when too large
* | Merge pull request #13720 from eric-wieser/more-with-statementsMatti Picus2019-06-066-86/+63
|\ \ | | | | | | MAINT/BUG: Manage more files with with statements
| * | BUG: Ensure that np.core.records.fromfile closes its file if something goes ↵Eric Wieser2019-06-041-29/+29
| | | | | | | | | | | | wrong
| * | BUG: Ensure that the url request is closed if the file cannot be openedEric Wieser2019-06-041-7/+4
| | |
| * | MAINT: Use a with statement instead of try / finallyEric Wieser2019-06-044-50/+30
| | | | | | | | | | | | All of this code was already correct, this just tidies it a little
* | | Merge pull request #13721 from eric-wieser/more_ufunc_exception_cleanupMatti Picus2019-06-063-17/+43
|\ \ \ | | | | | | | | MAINT,BUG: More ufunc exception cleanup
| * | | BUG: Prevent unsafe string concatenationEric Wieser2019-06-053-13/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This did not handle exceptions correctly. Changed to use python to format the exception like all the others in this file. This also adds quotes around the ufunc name.
| * | | MAINT: Remove pointless argumentEric Wieser2019-06-051-4/+4
| |/ / | | | | | | | | | This function had one call site, and its last argument was always part of the value passed as the first argument
* | | BUG: Fix random.choice when probability is not C contiguous (#13716)jeremiedbb2019-06-064-6/+70
| | | | | | | | | * test, fix random.choice sum for non-contiguous
* | | TST: add a regression test for #13715Bruce Merry2019-06-051-0/+9
| | | | | | | | | | | | | | | Without the fix, this test will still pass, but will show up as a use-after-free when run under valgrind.
* | | BUG: Fix use-after-free in boolean indexingBruce Merry2019-06-041-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | The index array is decrefed before extracting the shape to construct the `indices` array. If the caller does not hold a reference (which happens when the caller passed a list from which a temporary array was constructed, for example), this leads to a use-after-free. Closes #13714.
* | | ENH: pathlib support for fromfile(), .tofile() and .dump() (#12915)sorenrasmussenai2019-06-045-3/+69
|/ / | | | | * ENH: pathlib support for fromfile(), .tofile() and .dump()
* | Merge pull request #13632 from eric-wieser/tidy-nonzeroMatti Picus2019-06-031-18/+20
|\ \ | | | | | | MAINT: Collect together the special-casing of 0d non-zero into one place
| * | MAINT: remove unnecessary recomputation of is_emptyEric Wieser2019-06-011-10/+1
| | |
| * | MAINT: Collect together the special-casing of 0d non-zero into one placeEric Wieser2019-06-011-9/+20
| | |
* | | Merge pull request #13695 from bashtage/choice-windows-int32-dtypeMatti Picus2019-06-032-2/+15
|\ \ \ | | | | | | | | BUG: Ensure Windows choice returns int32
| * | | BUG: Ensure Windows choice returns int32Kevin Sheppard2019-06-022-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | Downcast from searchsorted on Windows to ensure int32 is returned closes #9867
* | | | Merge pull request #13684 from eric-wieser/dump-to-pythonCharles Harris2019-06-033-55/+38
|\ \ \ \ | | | | | | | | | | BUG: Move ndarray.dump to python and make it close the file it opens
| * | | | TEST: add passing testmattip2019-06-031-0/+4
| | | | |
| * | | | BUG: Move ndarray.dump to python and make it close the file it opensEric Wieser2019-06-012-55/+34
| | | | | | | | | | | | | | | | | | | | As a side-effect, this makes it support kwargs.
* | | | | Merge pull request #13696 from eric-wieser/deprecated-constants-lastCharles Harris2019-06-021-153/+154
|\ \ \ \ \ | |_|_|_|/ |/| | | | DOC: Put the useful constants first
| * | | | DOC: Reorder the constants to have the most useful firstEric Wieser2019-06-011-153/+154
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Previously the constants at the top of the page said words to the effect of "use the one at the bottom of this page instead". Let's just show users those ones first to start with. This commit only re-orders these constants, it does not change any of the descriptions, despite the diff appearing to show that
* | | | Merge pull request #13688 from bashtage/random_sample-aliasesMatti Picus2019-06-022-5/+5
|\ \ \ \ | | | | | | | | | | MAINT: Correct masked aliases
| * | | | MAINT: Correct masked aliasesKevin Sheppard2019-06-022-5/+5
| |/ / / | | | | | | | | | | | | | | | | | | | | Expose alias that have correct docstrings closes #10587
* | | | MAINT: speed up [hvd]stack by eliminating list comprehension. (#13697)Marten van Kerkwijk2019-06-012-3/+11
| |/ / |/| |
* | | Merge pull request #13693 from eric-wieser/const-correct-APIMatti Picus2019-06-014-34/+42
|\ \ \ | | |/ | |/| ENH: Pass input strides and dimensions by pointer to const
| * | ENH: Pass input strides and dimensions by pointer to constEric Wieser2019-06-014-34/+42
| |/ | | | | | | | | | | | | This makes it possible to call these functions with constant data. It also bakes the contract that the data passed via these pointers will not be changed into the function signatures. This is backwards compatible, because T* can always be passed to a function expecting T const*.
* | Merge pull request #13682 from eric-wieser/length-hintMatti Picus2019-06-011-1/+10
|\ \ | | | | | | ENH: Support __length_hint__ in PyArray_FromIter
| * | ENH: Support __length_hint__ in PyArray_FromIterEric Wieser2019-05-301-1/+10
| | | | | | | | | | | | | | | | | | This should avoid unnecessary allocations when called on iterators that have a good guess of their length. This API call has been supported since Python 3.4
* | | Merge pull request #13687 from bashtage/fix-12232Matti Picus2019-06-011-2/+1
|\ \ \ | | | | | | | | DOC: Remove misleading statement
| * | | DOC: Remove misleading statementKevin Sheppard2019-06-011-2/+1
| | |/ | |/| | | | | | | | | | | | | Remove misleading statement about discrete non-integers closes #12232
* | | Merge pull request #13690 from bashtage/generator-version-addedMatti Picus2019-06-011-5/+0
|\ \ \ | | | | | | | | MAINT: Remove version added from Generator
| * | | MAINT: Remove version added from GeneratorKevin Sheppard2019-06-011-5/+0
| |/ / | | | | | | | | | Remove version added from Generator since this makes no sense
* | | ENH: Add 'offset' keyword to 'numpy.fromfile()' (#12971)fivemok2019-06-013-6/+50
|/ / | | | | * ENH: add offset keyword arg to numpy.fromfile()
* | Merge pull request #13665 from bashtage/rkern-pcg-patchMatti Picus2019-05-311-7/+25
|\ \ | | | | | | MAINT: Use intrinsics in Win64-PCG64
| * | PERF: Use intrinsics in Win64-PCG64Kevin Sheppard2019-05-311-7/+25
| | | | | | | | | | | | Use intrinsics to speed up PCG64 on Windows 64
* | | MAINT: Misc. typo fixes (#13664)luzpaz2019-05-3131-39/+40
| | | | | | | | | | | | | | | | | | * DOC, MAINT: Misc. typo fixes Found via `codespell`
* | | BUG: regression for array([pandas.DataFrame()]) (#13663)Matti Picus2019-05-302-20/+44
|/ / | | | | | | | | | | | | | | | | Fixup of gh-13399 to avoid a regression with pandas. The actual output after this is the same as before, but incorrect with respect to the output shape. However, it seems a bit larger and an issue to look at after the 1.17 release. * BUG: test, fix regression for array([pandas.DataFrame()]) * BUG: refactor to make sure tmp is DECREFfed
* | BUG: Fix RandomState argument nameKevin Sheppard2019-05-292-7/+15
| | | | | | | | | | | | RandomState's argument must be named seed for backward compat closes #13669
* | Merge pull request #13655 from bashtage/integer-byteorderSebastian Berg2019-05-294-4/+29
|\ \ | | | | | | BUG/MAINT: Non-native byteorder in random ints
| * | BUG/MAINT: Disallow non-native byteorder in random intsKevin Sheppard2019-05-284-4/+29
| | | | | | | | | | | | | | | | | | Warn that non-native byte order is not supported in randint and integers closes #13159
* | | Merge pull request #13406 from mikelui/masterMatti Picus2019-05-291-19/+31
|\ \ \ | | | | | | | | DOC: clarify array_{2string,str,repr} defaults
| * | | DOC: clarify array_{2string,str,repr} defaultsMike Lui2019-04-251-26/+29
| | | | | | | | | | | | | | | | | | | | Point users to get_printoptions(), which returns the current print defaults.
| * | | DOC: clarify array_{2string,str,repr} defaultsMike Lui2019-04-251-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | Point documentation on default values for array2string, array_str, and array_repr to set_printoptions. set_printoptions uses the same defaulting scheme.