| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This NEP may require some thought and technical changes. There are also a few other things as to how we exactly implement e.g. lookup of which cast to use.
I currently envision that we accept NEP 41, with the decision to start on this NEP. However, we keep most of the proposal here private API, and thus somewhat flexible to changes before we finalize the API.
Some changes (i.e. the exact "methods", we need to define) should probably not be included here, but rather incrementally added later. Maybe by modifying the document, or adding a new NEP depending on the size of the change.
* NEP: Technical decisions for new DTypes
* Add datetime to the dtype hierarchy plot
* Some clarifications and smaller updates (not a proofread and not examples yet)
* clarify how casting will be signalled
* Updates to the NEP, hopefully answer a lot of Martens questions
Also uses datetime64 as an example in a few places, which
is hopefully useful.
* Apply suggestions from code review
Commit mainly grammer/style fixes from ross (direct suggestions)
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* Incorporate second chunk of Ross' feedback
* Apply suggestions from code review
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* Minor adjustment, add example for how promote_types works...
* Apply suggestions from code review
Apply suggestions from Joris.
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
* Incorporate feedback from Marten and Joris
Mainly adds a figure for the casting section, and tries to rephrase
the first part of it almost entirely around that figure, which should
also simplify it a lot, although at this time possible loses a tiny
bit precision/details.
* NEP: Apply suggestions from Ross
<Many fixups from Ross>
* NEP: Fix the last section and missing link.
Also clarify the ``kind`` and ``char`` a bit, suggesting to
use ``__qualname__``. While this is weird for ``char``, it
is at least guaranteed to be be unique and to fail when used
inapproprioatly.
* NEP: Type edits for NEP 42 and Eric Wiesers suggestions
Some type edits for the first part mainly and fixups based on
Eric's review.
* Fixup links
Co-Authored-By: Marten van Kerkwijk <mhvk@astro.utoronto.ca>
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
|\
| |
| | |
DOC,ENH: extend error message when Accelerate is detected
|
| |
| |
| | |
Co-authored-by: Warren Weckesser <warren.weckesser@gmail.com>
|
| |
| |
| | |
Co-authored-by: Warren Weckesser <warren.weckesser@gmail.com>
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| | |
* DOC: rreword much of the howto-docs guide
|
|\ \
| | |
| | | |
DOC: Improve "tobytes" docstring.
|
| | |
| | |
| | |
| | | |
Matches the order parameter options.
|
| | |
| | |
| | | |
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
| | |
| | |
| | | |
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
| | |
| | |
| | | |
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
| | |
| | |
| | | |
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
Clarify that inferred type will never be integer. Fixes gh-8597.
|
| | |
| | |
| | |
| | |
| | | |
* 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>
|
|\ \ \
| | | |
| | | | |
DOC: only single-polynomial fitting in np.polynomial.Polynomial.fit()
|
| | | |
| | | |
| | | | |
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
| | | |
| | | |
| | | | |
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
CI: drop win32 3.7, 3.6 builds
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* 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>
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG: Ensure SeedSequence 0-padding does not collide with spawn keys
|
| | | | | | |
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | |
| | | |
| | | | |
* fix np.ma.core.doc_note
|
|\ \ \ \
| | | | |
| | | | | |
ENH: add type stubs from numpy-stubs
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Mypy doesn't work with 3.9 yet, and 3.6 doesn't work because it
doesn't the py.typed marker.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
It currently splits on ":", which causes problems with drives.
|
| | | | |
| | | | |
| | | | |
| | | | | |
This will make them get picked up in CI runs.
|
| | | | | |
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \
| | | | |
| | | | | |
BUG: fixes einsum output order with optimization (#14615)
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
DOC: update roadmap
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Closes gh-13616.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Removes completed items and other outdated content, plus some things
that are too detailed or not high-prio enough to be on the roadmap.
Add new items that are being actively worked on or for which there's a
lot of interest. Link the most relevant NEPs.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
DOC: Correct MV Normal sig
|