| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
DOC: distutils: Add a docstring to show_config().
|
| |
| |
| |
| |
| |
| |
| | |
Thanks to Sergey Kojoian for the original patch to create
the docstring.
Closes gh-9258.
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The old code examples did not actually run correctly and had a bug. They were
also never updated to use SeedSequence correctly. This fixes both.
* DOC, BUG: Fixes Multithreaded Generation docs
Working on #15365
The code runs now, but I get quite different runtimes than
in the example. May need some more work
* DOC: changes after PR review
* DOC: Changing input/output lines to sphinx standard
For ipython example: Adding `Out[i]` where i is the input cell number
and correcting vissual multiline inputs
* MAINT: Replace `jumped` by `SeedSequence` in multithreading snippet
After PR review, decided to replace `jumped` by `SeedSequence` as it is a more general method. Adopted the introduction to reflect this.
Also added a section on the reproducibility for different machines and number of threads + an example.
* MAINT: Changes after PR review
- Switch back to default_rng() instead of the Generator(BitGenerator)) syntax pursuant @rkern 's explanation in #15391
- small fixes
* MAINT: Delete unneccesary reference to PCG64
* MAINT: Added newline finxing codeblock error in docs
Trying to see whether this fixes circleci error
* MAINT: Clean up in imports of code snippet
|
| |
|
|
|
|
|
| |
This PR const qualifies the dimension and strides arguments of PyUFuncGenericFunction. Const qualified arguments make it simpler to reason about the behaviour of these ufuncs and prevents accidental mutation. As the const is now required this PR also const qualifies calls to PyUFuncGenericFunction inside the NumPy source code.
This closes #15252
|
|\
| |
| | |
STY: Use `with open` when possible
|
| | |
|
|\ \
| |/
|/| |
NEP: document reimplementation of NEP 34
|
| | |
|
|\ \
| | |
| | | |
DOC, BLD: reword release note, upgrade sphinx version
|
| | | |
|
| | |
| | |
| | |
| | | |
This implements NEP 34.
|
|/ /
| |
| |
| |
| |
| |
| | |
This absolute beginners tutorial is the output of Anne's Google
Season of Docs project. An intermediate version was also published at
https://towardsdatascience.com/the-ultimate-beginners-guide-to-numpy-f5a2f99aef54
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Updated f2py "Getting Started" doc to python3.
* WIP: updating f2py docs to python3: intro to python-usage done.
* WIP: updated "Scalar Arguments" session of python-usage.rst
* WIP: updated "String arguments" section of python-usage.rst. TODO check for string bug here.
* WIP: updated "Array arguments" section of python-usage.rst
* WIP: updated "Callback arguments" section in python-usage.rst
* WIP: updated sections "Common blocks" and "F90 module data" from python-usage.rst
* Finished update of python-usage.rst
* WIP: updating usage.rst
* PEP8 fix for equal sign and added note about building extension modules.
* Finished update of usage.rst
* Remove future imports from f2py example.
* Fixed typos.
* Fixed typo.
* Updated f2py "Getting Started" doc to python3.
* Finished update of python-usage.rst
* Finished update of usage.rst
* Fixed typos.
* Addressing comments on PR.
* Addressing PR review; closes gh-14812; fixes gh-14919; closes gh-14960; fixes gh-14865; fixes gh-14862
* Restore names of common block items.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* ENH: add identity kwarg to frompyfunc
* Update umathmodule.c
* Add test, docs, and release note for identity
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
|\ \
| | |
| | | |
DEP: records: Deprecate treating shape=0 as shape=None
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
`shape=n` is a shorthand for `shape=(n,)` except in the case when `n==0`, when it is a shorthand for `shape=None`.
This special case is dangerous, as it makes `fromrecords(..., shape=len(a))` behave surprisingly when a is an empty sequence.
Users impacted by this warning either:
* Have a bug in their code, and will need to either:
- wait for the deprecation to expire
- change their code to use `(len(a),)` instead of `len(a)`
* Are using the non-preferred spellling, and will need to replace a literal `0` or `False` with `None`
|
|\ \ \
| | | |
| | | | |
API: remove undocumented use of __array__(dtype, context)
|
| | |/
| |/| |
|
| | |
| | |
| | |
| | |
| | | |
This adds the additional deprecation of fastclip if it is set at
registration time instead of only testing that it is never used.
|
|\ \ \
| | | |
| | | | |
MAINT,API: ignore and NULL fasttake/fastputmask ArrFuncs slots
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This removes the use of the fastputmask ArrFuncs slot from within
NumPy and always leaves it NULL.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Always NULL the fasttake slot, and instead move the optimized versions
by doing itemsize specialization in the Take function itself.
|
| |/ /
|/| | |
|
|\ \ \
| | | |
| | | | |
DOC: Update HOWTO_RELEASE.rst
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
DOC: BLD: add empty release notes for 1.19.0 to fix doc build error
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Was discussed before in gh-15042 but forgotten about.
Sphinx now complains about this missing file, and warnings get
turned into errors in some cases in our build setup.
[ci skip]
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
MAINT: Clean up more PY_VERSION_HEX
|
| | |/ /
| |/| | |
|
|\ \ \ \
| | | | |
| | | | | |
DOC: Add some missing functions in the list of available ufuncs.
|
| | | | |
| | | | |
| | | | |
| | | | | |
See #15214
|
|\ \ \ \ \
| | | | | |
| | | | | | |
MAINT: Post NumPy 1.18.1 update.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
- Add 1.18.1-changelog.rst
- Add 1.18.1-notes.rst
- Update release.rst
|
|/ / / / / |
|
| |/ / /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* DOC: NEP 37: A dispatch protocol for NumPy-like modules
* Minor text edits, per review comments
* Add examples of how pint and dask avoid array creation routines
* Apply suggestions from code review
Co-Authored-By: Sebastian Berg <sebastian@sipsolutions.net>
* Fixes per Sebastian's review
* Fixes from ptenschev's review
* line wrapping
* Spelling fixes
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
remove-numpy.distutils.compat
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Marking these arguments as const makes it easier to reason about these functions, and prevent accidental mutation.
The C99 standard (6.2.5/26 "Types") guarantees that ABI compatibility is preserved here.
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | | |
Inheriting from object was necessary for Python 2 compatibility to use
new-style classes. In Python 3, this is unnecessary as there are no
old-style classes.
Dropping the object is more idiomatic Python.
|
| |\ \ \
| | | | |
| | | | | |
MAINT: Cleaning up PY_MAJOR_VERSION/PY_VERSION_HEX
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
On Python 3, int_asbuffer throws NotImplementedError and goes unused
internally.
Fixes #12425
|
| |\ \ \ \
| | |/ / /
| |/| | | |
MAINT: Remove unnecessary 'from __future__ import ...' statements
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
|
| |/ / /
| | | |
| | | |
| | | |
| | | | |
Dropping the support for python 2, the difference in module setup do not have to be accounted
for anymore. This removes the macros and ifdef's related to module setup code and python 2
support.
|
| | | | |
|