summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* 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 #16574 from person142/dtype-constructor-typesMatti Picus2020-06-124-4/+16
|\ | | | | MAINT: fix name of first parameter to dtype constructor in type stubs
| * DOC: correct name of first dtype constructor parameterJosh Wilson2020-06-112-3/+7
| |
| * MAINT: fix name of first parameter to dtype constructor in type stubsJosh Wilson2020-06-102-1/+9
| | | | | | | | | | The first parameter to the constructor is currently called "obj", which is incorrect. It should instead be "dtype".
* | Merge pull request #16572 from xiegengxin/fix-sin-cosMatti Picus2020-06-122-8/+10
|\ \ | | | | | | BUG: fix sin/cos bug when input is strided array
| * | Add test for sin/cos for strided large inputsGengxin Xie2020-06-121-4/+6
| | |
| * | BUG: fix sin/cos bug when input is stridedGengxin Xie2020-06-111-4/+4
| |/
* | Merge pull request #16452 from mattip/accelerate-errorCharles Harris2020-06-111-5/+4
|\ \ | | | | | | DOC,ENH: extend error message when Accelerate is detected
| * | DOC,ENH: extend error message when Accelerate is detectedmattip2020-05-311-5/+4
| | |
* | | Merge pull request #16291 from abhilash42/tobytes-doc-changeSebastian Berg2020-06-111-8/+7
|\ \ \ | | | | | | | | DOC: Improve "tobytes" docstring.
| * | | DOC: remove K from order parameter options.Ross Barnowski2020-06-101-4/+3
| | | | | | | | | | | | | | | | Matches the order parameter options.
| * | | Update numpy/core/_add_newdocs.pyabhilash422020-05-191-1/+1
| | | | | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | | Update numpy/core/_add_newdocs.pyabhilash422020-05-191-1/+1
| | | | | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | | Update numpy/core/_add_newdocs.pyabhilash422020-05-191-2/+1
| | | | | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | | Update numpy/core/_add_newdocs.pyabhilash422020-05-191-1/+1
| | | | | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | | Update _add_newdocs.pyabhilash422020-05-191-16/+8
| | | |
| * | | Update _add_newdocs.pyabhilash422020-05-181-4/+13
| | | |
* | | | DOC: Fix malformed docstrings in ma. (#16296)Takanori H2020-06-111-8/+3
| |_|/ |/| | | | | | | | | | | | | | * DOC: fixing malformed documents Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* | | DOC: Fix description of dtype default in linspace (#16433)bjnath2020-06-101-2/+4
| | | | | | | | | | | | | | | DOC: Fix description of dtype default in linspace Clarify that inferred type will never be integer. Fixes gh-8597.
* | | BUG: endpoints of array returned by geomspace() should match arguments (#16411)Kaspar Thommen2020-06-102-3/+47
| | | | | | | | | | | | | | | * BUG: make sure the endpoints of the array returned by geomspace() matches the 'start' and 'stop' arguments exactly Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* | | Merge pull request #16506 from wrzadkow/Polynomial.fit-documentationRoss Barnowski2020-06-101-4/+2
|\ \ \ | | | | | | | | DOC: only single-polynomial fitting in np.polynomial.Polynomial.fit()
| * | | DOC: add the number of sample points as suggestedWojciech Rzadkowski2020-06-081-1/+1
| | | | | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | | DOC: expand the docstring as suggested in reviewWojciech Rzadkowski2020-06-051-1/+1
| | | | | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | | DOC: mention only single-polynomial fitting in np.polynomial.Polynomial.fit()Wojciech Rzadkowski2020-06-051-4/+2
| | | |
* | | | DEP: Remove deprecated numeric types and deprecate remaining (#16554)Sebastian Berg2020-06-106-76/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DEP: Remove deprecated numeric types and deprecate remaining This removes the types from usage for `np.dtype()`, since the two are closely related, also finishes the deprecation of `typeNA` and `sctypeNA` (thus removing them from the public API). The deprecation for the numeric types was only shown for `np.dtype("Complex64")`, etc. however, here they are also removed from `np.typeDict` and `np.sctypeDict`. Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* | | | Merge pull request #16551 from numpy/fix/seed-sequence-zerosCharles Harris2020-06-102-2/+37
|\ \ \ \ | | | | | | | | | | BUG: Ensure SeedSequence 0-padding does not collide with spawn keys
| * | | | BUG: Ensure SeedSequence 0-padding does not collide with spawn keysRobert Kern2020-06-092-2/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #16539 The implicit 0-padding that is done to small entropy inputs to make them the size of the internal pool conflicts with the spawn keys, which start with an appended 0. In order to maintain stream compatibility with unspawned `SeedSequence`s, we explicitly 0-pad short inputs out to the pool size only if the spawn key is provided, and thus would trigger the bug. This should minimize the impact on users that were not encountering the bug.
* | | | | MAINT: simplifying annotations for np.core.from_numeric (#16556)Bas van Beek2020-06-102-47/+17
|/ / / / | | | | | | | | | | | | | | | | | | | | Simplified annotations for functions requiring >=1D ArrayLike objects. Affects a set of <20 functions from ``np.core.fromnumeric``. Based on feedback from https://github.com/numpy/numpy-stubs/pull/71.
* | | | DOC: Fix ``np.ma.core.doc_note`` (#16311)Takanori H2020-06-092-11/+35
| | | | | | | | | | | | * fix np.ma.core.doc_note
* | | | Merge pull request #16515 from person142/add-type-stubsMatti Picus2020-06-0934-0/+2502
|\ \ \ \ | | | | | | | | | | ENH: add type stubs from numpy-stubs
| * | | | MAINT: avoid more division by zero in typing test causing aarch64 to failJosh Wilson2020-06-071-5/+6
| | | | |
| * | | | MAINT: avoid divide by zero in typing test causing aarch64 tests to failJosh Wilson2020-06-071-1/+1
| | | | |
| * | | | MAINT: modify mypy error line parsing to work on windowsJosh Wilson2020-06-071-2/+14
| | | | | | | | | | | | | | | | | | | | It currently splits on ":", which causes problems with drives.
| * | | | MAINT: move typing tests cases into a subdirectory of numpy/testsJosh Wilson2020-06-0728-6/+6
| | | | |
| * | | | ENH: add type stubs from numpy-stubsJosh Wilson2020-06-0634-0/+2489
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the type stubs and tests from numpy-stubs. Things this entails: - Copy over the stubs (numpy/__init__.pyi and numpy/core/_internal.pyi) - The only modification made was removing `ndarray.tostring` since it is deprecated - Update some setup.py files to include pyi files - Move the tests from numpy-stubs/tests into numpy/tests - Skip them if mypy is not installed (planning on setting up CI in a future PR) - Add a mypy.ini; use it to configure mypy in the tests - It tells mypy where to find NumPy in the test env - It ignores internal NumPy type errors (since we only want to consider errors from the tests cases) - Some small edits were made to fix test cases that were emitting deprecation warnings - Add numpy/py.typed so that the types are picked up in an installed version of NumPy
* | | | Merge pull request #16446 from dgasmith/einsum_orderSebastian Berg2020-06-082-2/+48
|\ \ \ \ | | | | | | | | | | BUG: fixes einsum output order with optimization (#14615)
| * | | | BUG: fixes einsum ouput order with optimization (#14615)Daniel G. A. Smith2020-06-082-2/+48
| | | | |
* | | | | Merge pull request #16504 from bashtage/doc-mv-normCharles Harris2020-06-081-1/+2
|\ \ \ \ \ | | | | | | | | | | | | DOC: Correct MV Normal sig
| * | | | | DOC: Correct MV Normal sigKevin Sheppard2020-06-051-1/+2
| | |/ / / | |/| | | | | | | | | | | | | Add new kw arg to sig
* | | | | DEP: Deprecate inexact matches for mode, searchside (gh-16056)Anirudh Subramanian2020-06-086-71/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously misspelling were allowed by these functions as long as e.g. the first letter matched. They will now check whether the match is exact giving a deprecation warning when it is not. Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* | | | | Merge pull request #16510 from madphysicist/patch-1Charles Harris2020-06-081-1/+1
|\ \ \ \ \ | | | | | | | | | | | | DOC: Minor rounding correction in Generator.binomial
| * | | | | DOC: Minor rounding correction in Generator.binomialJoseph Fox-Rabinovitz2020-06-061-1/+1
| |/ / / / | | | | | | | | | | Changed 38.88 from 38 to 39
* | | | | ENH: Improve the ARM cpu feature detection by parsing /proc/cpuinfo (#16321)Chunlin2020-06-082-25/+268
| | | | | | | | | | | | | | | * when parsing auxv fail, try parsing /proc/cpuinfo
* | | | | BUG: Fix cython warning in random/_common.pyx.Charles Harris2020-06-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Fix for #16508. Cython wants every pointer declaration to be on a separate line.
* | | | | Merge pull request #16503 from bashtage/bug-broadcast-sizeCharles Harris2020-06-072-0/+70
|\ \ \ \ \ | | | | | | | | | | | | BUG:random: Error when ``size`` is smaller than broadcast input shapes.
| * | | | | BUG: Correct broadcasting when size is not NoneKevin Sheppard2020-06-052-0/+70
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Broadcastable size with inputs does not produce an error when size produces a smaller output array than the broadcast input shape. Patch checks that the output shape matches the outer shape of the broadcast fo all inputs and the size when given.
* | | | | Merge pull request #16524 from pv/f2py-threadsafe-cb-fixupCharles Harris2020-06-072-19/+18
|\ \ \ \ \ | | | | | | | | | | | | MAINT: f2py: move thread-local declaration definition to common macro
| * | | | | MAINT: f2py: move thread-local declaration definition to common macroPauli Virtanen2020-06-082-19/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move compiler thread-local declaration detection to a common macro. Also support C11 thread_local declaration, if available.
* | | | | | Merge pull request #16522 from seiko2plus/issue_16516Charles Harris2020-06-071-3/+4
|\ \ \ \ \ \ | |/ / / / / |/| | | | | MAINT:ARMHF Fix detecting feature groups NEON_HALF and NEON_VFPV4