| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | | |
Co-Authored-By: Anne Bonner <35413198+bonn0062@users.noreply.github.com>
|
| | |
| | |
| | | |
Co-Authored-By: Anne Bonner <35413198+bonn0062@users.noreply.github.com>
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
DOC: fix printing, np., deprecation for refguide
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Deprecation fixes:
- Change Float64 example to float64.
- Remove shape=(1,) example for type strings.
Add missing np prefix.
Fix output to match current NumPy printing.
|
|/ / / |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Hey y'all,
here I am replacing `.shape = ` with `.reshape`. There is some PEP8 changes, but not that much.
Some issues arise from that, mainly in "Copies and views". I think this section should be rewritten with other examples.
Thoughts everyone?
Thanks!
|
|\ \ \
| | | |
| | | | |
MAINT: cleanup unused imports; avoid redefinition of imports
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | | |
* Cleanup unused imports (F401) of mostly standard Python modules,
or some internal but unlikely referenced modules
* Where internal imports are potentially used, mark with noqa
* Avoid redefinition of imports (F811)
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fix missing np prefix.
Fix missing definitions.
Use print function instead of the statement.
Add seed to make output repeatable.
|
|\ \
| | |
| | | |
DEP: Schedule unused C-API functions for removal/disabling
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This function provides mainly the same API as PyObject_Call()
with the exception of skipping ufunc overrides and output array
wraps.
It is fairly unwieldy to use, since ownership of all inputs and
outputs is transferred, but otherwise it still uses args and kwargs
as inputs.
As such, no known usage exists and PyObject_Call seems a reasonable
replacement for possible usage. Keeping it around means that we would
may have to add tests or risk breaking this function when ufunc
code is refactored.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The function has no known usage outside of NumPy. It is fairly
complex to use due to how it behaves with scalars, and, at least
with a given "flexible" dtype would require additional access
to the private PyArray_AdaptFlexibleDType function.
Removing the function from public API will simplify refactor work
of the dtype and dimension recovery.
|
|\ \ \
| | | |
| | | | |
DOC: document site.cfg.example
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
part of #14970
|
| | | |
| | | |
| | | |
| | | | |
DOC: fix docstrings so `python tools/refguide-check --rst <file> runs
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* PEP 8: "Imports should usually be on separate lines"
* Where modified, sort imported modules alphabetically
* Clean-up unused imports from these expanded 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
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| |/ /
|/| | |
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
|
| | | | |
|
| |/ /
|/| | |
|
| |/
|/|
| |
| |
| |
| |
| |
| | |
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]
|
|\ \
| | |
| | | |
DOC: Add some missing functions in the list of available ufuncs.
|
| | |
| | |
| | |
| | | |
See #15214
|
| |/
|/|
| |
| |
| |
| | |
- Add 1.18.1-changelog.rst
- Add 1.18.1-notes.rst
- Update release.rst
|
| |
| |
| |
| |
| |
| | |
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
|
| | | |
|
|\ \ \
| |/ /
|/| | |
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.
|
| | |
|
|\ \
| | |
| | | |
DOC: Improvements to Quickstart Tutorial.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Modified reference to array creation with a list to the
more general term 'sequence'. Also removed the 'numeric'
distinction.
* Updated reference to arange to reflect that as of Python
3, the python built-in range does not return a list.
* Fixed 'see also' references to invert and r_ which were
not linked properly.
* Replaced referenced to ma.row_stack with the more
general row_stack. Added additional detail about
the aliasing of vstack.
* Updated array stacking example to include proper rST
python syntax.
|
|/
|
|
|
|
|
|
|
|
| |
- Add 1.16.6-changelog.rst
- Add 1.17.5-changelog.rst
- Add 1.16.6-notes.rst
- Add 1.17.5-notes.rst
- Update doc/source/release.rst
[skip ci]
|
|
|
|
|
| |
Building the html docs from source requires a working LaTeX
build environment to get the equations rendered properly.
|
|
|
|
|
|
| |
Added instructions to the developer guide on initializing the
submodules containing numpydoc and the scipy sphinx theme
before building the documentation.
|