| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The string to number casts fall back to using the scalars and
the type setitem function to do the cast.
However, before calling setitem, they sometimes already called
the Python function for string coercion. This is unnecessary.
Closes gh-15608
|
|\ \
| | |
| | | |
DOC: Fix runtests example in developer docs
|
| | | |
|
|\ \ \
| | | |
| | | | |
REL: Update master after 1.18.2 release.
|
| | | | |
|
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
(gh-15463)
xref gh-14778
As pointed out in the comment by @jamesthomasgriffin, we did not include a pxd file to expose the distribution functions documented in the random c-api. This PR adds a c_distributions.pxd file that exposes them.
Squashed commits:
* BUG: add missing c_distributions.pxd to enable cython use of random C-API
* ENH, TST: add npyrandom library like npymath, test cython use of it
* BUG: actually prefix f-string with f
* MAINT: fixes from review, add _bit_generato_bit_generator.pxd
* STY: fixes from review
* BLD: don't use nprandom library for mtrand legacy build
* TST: WindowsPath cannot be used in subprocess's list2cmdline
* MAINT, API: move _bit_generator to bit_generator
* DOC: add release note about moving bit_generator
* DOC, MAINT: fixes from review
* MAINT: redo dtype determination from review
|
|\ \ \
| | | |
| | | | |
MAINT: Bump pytest from 5.3.5 to 5.4.1
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.3.5 to 5.4.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.3.5...5.4.1)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* TST: Test during import to detect bugs with Accelerate(MacOS) LAPACK
fixes #15647
* Pipeline update for Accelerate(MacOS) testing
|
|\ \ \
| | | |
| | | | |
BUG: lib: Handle axes with length 0 in np.unique.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Tweak a few lines so that arrays with an axis with length 0
don't break the np.unique code.
Closes gh-15559.
|
|/ / /
| | |
| | |
| | |
| | | |
This code is from github user huonw, from this PR:
https://github.com/numpy/numpy/pull/15565
|
|\ \ \
| |/ /
|/| | |
MAINT: CI: Add an explicit 'pr' section to azure-pipelines.yml
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Run 'apt-get update' before 'apt-get install ...'
This should fix the failure to build PyPy in the Linux_PyPy3
azure pipelines CI test.
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Azure-pipelines is currently experiencing an "incident":
https://status.dev.azure.com/_event/179641421)
From that web page:
> Currently CI and PR triggers in YAML for GitHub and Bitbucket
> repositories are not working when they are not explicitly listed
> in the YAML file. Our expected behavior is that when there are
> no explicit triggers in the YAML, the pipelines will trigger on
> all commits on all branches and all pull requests. This is
> currently not happening. To workaround, please explicitly list
> the triggers you want in the YAML file for your pipeline.
This PR adds the suggested explicit 'pr' triggers to the YAML file.
|
|\ \
| | |
| | | |
MAINT: Fix swig tests issue #15743
|
|/ /
| |
| |
| |
| | |
resize typemap issue
python 3 bytes vs str issue
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
in documentation (#15740)
* Clarify `fro` and `nuc` usage in linalg.norm documentation
(see #15533).
* Add improved error handling when getting Frobenius norm from
a vector (see #15533).
* Fix comment in linalg norm test.
Closes gh-15533.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
There are multiple conditions that `_attempt_nocopy_reshape` checks for
when ndarray.shape is mutated directly. Discussion of #10146 indicated
that an error message referencing any type of contiguity would not be
correct for all cases, so the error message has been changed to be more
general.
* ENH: shorten message and use "in-place"
* MAINT: typo from review
Co-authored-by: hanjohn <hanjohn@users.noreply.github.com>
Co-authored-by: mattip <matti.picus@gmail.com>
|
|\ \
| | |
| | | |
MAINT: doc: Remove doc/summarize.py
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The code in doc/summarize.py is no longer used and it is
not being maintained, so remove it.
Closes gh-15708.
|
|/ /
| |
| | |
* DOC: Refactor polynomial docs using automodule.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This NEP is supposed to:
1. Motivate the whole DType change and lay out a rough plan.
2. Clarify a few mainly high level decision/plans.
3. Get inertia on starting to implement espeically a DTypeMeta class in C, and slowly add new private API working towards Phase II, which is planned t be better specified by NEP 42 and 43.
Full list of squashed commits (including suggestions below):
* NEP: Create NEP41, proposing a rough plan for new DTypes
* Try to clarify how datatypes are "natural" compared to array likes and clean up API breakage section
* Fix references (mostly at least)
* Add a first draft of a few examples.
* Reorganize examples as per suggestion by Marten and add ufunc loop note
* Make a pass on the first chunk and number the later stuff to match
* Some minaor adjustments
* Add, probably silly, picture.
* Add pngs, since it is probably easier to render...
* Small changes, mainly to see if I can make it render...
* Apply suggestions from code review
Thanks @crusaderky especially for type reading and all the reference, etc. issues!
Co-Authored-By: crusaderky <crusaderky@gmail.com>
Co-Authored-By: Maximilian Roos <5635139+max-sixty@users.noreply.github.com>
* Tiny fixes, mainly fix title levels hopefully
It seems I am not allowd to skip a title level in one point
but not another.
* Small changes/fixups
* Reorganize sections to better fit template.
* Further swapping of Detailed Information part.
* Make motivation clear and mention user impact section
the user impact section is more useful than the actual motivation
section.... since the motivation is more technical in nature
* Small editing of the first few sections
* Some further small type-edits for the later sections
* Add a small paragraph mentioning the intention of a fallback
* Smaller changes, rework phases at beginning of scopes section
* Mention which NEP is to define which bullet point in Phase II
* Consolidate point 1+2 into a single point and clarify the incompatible change
* Mention the change of how methods are defined in the backcompat section
* Add a note at the top of the NEP (will need to be links to other NEPs)
This note will almost identiclaly be added to the other NEPs then..
* Fixups mainly based on comments from Ross (large chunks are directly using his suggestions)
* Apply suggestions from code review
Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
* Incorporate most of Erics comments (which were not already suggestions)
* Update doc/neps/nep-0041-improved-dtype-support.rst
Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
* Small reformatting, fix authors and add drafty acknowledgments
Ross does not want authorship, so he has to suffer through this ;).
Co-authored-by: crusaderky <crusaderky@gmail.com>
Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
| |
| |
| |
| |
| | |
This is largely a re-submission of the original change proposed in #6509. Discussion was hosted in multiple forums including #3474, the numpy mailing list circa 10-2015, and the 02-26-2020 NumPy Triage meeting.
This PR closes #3474 and #15570
|
|\ \
| | |
| | | |
MAINT: Remove non-native byte order from _var check.
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
Removes unnecessary code introduced in #15696.
Non-native byte orders were explicitly added to the fast-path
check in _var for complex numbers. However, the non-native
path is unreachable due to coercion in upstream ufuncs.
|
|\ \
| | |
| | | |
MAINT: Add a fast path to var for complex input
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
var currently has a conditional that results in conjugate being
called for the variance calculation of complex inputs.
This leg of the computation is slow. This PR avoids this
computational leg for complex inputs via a type check.
Closes #15684
|
|\ \ \
| | | |
| | | | |
TST: Remove nose from the test_requirements.txt file.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Nose is unmaintained and raises a DeprecationWarning on import.
Removing it from the requirements will cause the legacy tests that need
it to be skipped.
Nose testing was ended in July 2019 but was raised from the dead when
the test_requirements.py file was added in August 2019.
|
| | | |
| | | |
| | | | |
Update Year 2019 -> 2020
|
|\ \ \ \
| | | | |
| | | | | |
DOC: Allow NEPs to link to python, numpy, scipy, and matplotlib docs
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
This was originally added by Matti for use in NEP 41, but splitting
it off, since it is generally useful
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: Replace optparse with argparse for 'doc' and 'tools' scripts
|
| | |/ /
| |/| | |
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: Fixing typos in f2py comments and code.
|
| | | | | |
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
BUG: fix logic error when nm fails on 32-bit
|
|/ / / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* MAINT: use list-based APIs to call subprocesses
* TST, MAINT: add a test for mingw32ccompiler.build_import, clean up lib2def
Co-authored-by: Matti Picus <matti.picus@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
| | | |
| | | |
| | | |
| | | |
| | | | |
* DOC: fix coremath.rst to fix refguide_check
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
|\ \ \ \
| | | | |
| | | | | |
DOC: update datetime reference to pass refguide
|
| | | | |
| | | | |
| | | | | |
Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Remove example with timezone
Remove section on changes in NumPy 1.11
|
|\ \ \ \ \
| |_|_|_|/
|/| | | | |
TST: always use 'python -mpip' not 'pip'
|