| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
| |
* 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
|
| | |_|/
| |/| |
| | | |
| | | | |
Add new kw arg to sig
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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>
|
|\ \ \ \
| | | | |
| | | | | |
DOC: Minor rounding correction in Generator.binomial
|
| |/ / /
| | | |
| | | | |
Changed 38.88 from 38 to 39
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: Bump pytest from 5.4.2 to 5.4.3
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.4.2 to 5.4.3.
- [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.4.2...5.4.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
|
| | | |
| | | |
| | | | |
* when parsing auxv fail, try parsing /proc/cpuinfo
|
|\ \ \ \
| | | | |
| | | | | |
BUG: Fix cython warning in random/_common.pyx.
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
Fix for #16508. Cython wants every pointer declaration to be on a
separate line.
|
|\ \ \ \
| | | | |
| | | | | |
BUG:random: Error when ``size`` is smaller than broadcast input shapes.
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: f2py: move thread-local declaration definition to common macro
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Move compiler thread-local declaration detection to a common macro.
Also support C11 thread_local declaration, if available.
|
| | | | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
MAINT:ARMHF Fix detecting feature groups NEON_HALF and NEON_VFPV4
|
| | | | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
BUG: f2py: make callbacks threadsafe
|
| | | | | |
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
STY: f2py: replace \t by whitespace for readability
|
| | | | | |
|
|/ / / / |
|
| | | |
| | | |
| | | | |
Main purpose is to merge this and trigger a doc rebuild.
|
|\ \ \ \
| | | | |
| | | | | |
DOC: Point Contributing page to new NEP 45
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Per gh-16500, changed link style to :ref:`<NEPxx>`.
Added a NEP45 target to NEP 45, and added a NEP29 target
to NEP 29 since it has the irregular NEP0029 target.
The two new NEP targets aren't picked up, though the
older ones are. Tried make clean in neps and docs.
```
/home/bjn/numpy_git/numpy-1/doc/source/dev/index.rst:191: WARNING: undefined label: nep45 (if the link has no caption the label must precede a section header)
HOWTO_RELEASE.rst.txt:43: WARNING: undefined label: nep29 (if the link has no caption the label must precede a section header)
HOWTO_RELEASE.rst.txt:50: WARNING: undefined label: nep29 (if the link has no caption the label must precede a section header)
```
The nep objects.inv does seem to have both the nep29 and nep44 targets.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Per #16500 discussion, adds link updates to PR.
Replaces NEP URLs with intersphinx links in these
files:
* doc/HOWTO_RELEASE.rst.txt
* doc/source/dev/howto-docs.rst
* numpy/doc/dispatch.py
* numpy/lib/format.py
and incorporates @rossbar's #16502 change of `config.py`.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Moved the link for C style to NEP 45.
In NEP 45, replaced explicit link to PEP 7 with a :pep: link.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* DOC: Fixes for 18 broken links
This, with PR #16465, should fix nearly all the remaining broken links
on the site. 4 or 5 others should be easy to fix and just
need attention from someone more knowledgeable -- will
open an issue. For release notes with dead links,
I could usually find links on archive.org for roughly contemporary
versions.
* DOC: Update to "Fixes for 18 broken links #16472"
* Obsolete links, previously commented out, now deleted:
https://github.com/numpy/numpy/pull/16472#discussion_r433928958
* Semantic markup for reference to Python class:
https://github.com/numpy/numpy/pull/16472#discussion_r433553928
* Missing :ref: in internal link:
https://github.com/numpy/numpy/pull/16472#discussion_r433554484
Not included: Resolution on using external/internal doc link in .py:
https://github.com/numpy/numpy/pull/16472#discussion_r433554824
* DOC: Add internal link for 'Fixes for 18 broken links' PR #16472
Making reference [1] an internal link in function_base.py => numpy.vectorize.html
* DOC: Redirect 2 link fixes in PR #16472
* governance.rst link reverted
* ununcs.rst `overridden` link goes where it was meant to
per https://github.com/numpy/numpy/pull/16472#pullrequestreview-424666070
|
| |/ / /
|/| | |
| | | |
| | | |
| | | |
| | | | |
This is the spelling of the compatibility macro that CPython is
recommending.
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
|\ \ \ \
| | | | |
| | | | | |
BUG,MAINT: Fix issues with non-reduce broadcasting axes
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This was previously checked for, but during the refactor using
NPY_ITER_REDUCTION_AXIS to allocate the result in the iterator
instead of manually was lost here.
Einsum has a similar issue, but this is not modified here.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Incorporate suggestions by Marten and Eric.
|