| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
The current master_doc is really only used to specify the toctree to
set up the navbar in the pydata-sphinx-theme.
By renaming to index.rst the navbar config is preserved and the
links back to the main page point to the original landing page
rather than the contents page, which was mostly empty.
|
|
|
| |
matplotlib canonical docs are now https://matplotlib.org/stable
|
|
|
| |
A very small contribution to update the license date from 2020 to 2021 :)
|
| |
|
| |
|
|\
| |
| | |
DOC: Remove the tables of scalar types, and use `..autoclass` to create link targets instead
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
By default, the `.__name__` of the numeric `np.generic` subclasses is their bitlength name, such as `np.int64`.
This is convenient when working interactively, because it lets users see the size of their array easily; but in docs it is confusing, as the sizes of the integers in the doc build may not match their size on the platform of the user reading them.
Without this change, `..autoclass:: numpy.short` would just display "alias of uint16", which is backwards.
Rather than changing the names globally, or adding a build flag to change the names, this uses `ctypes` to modify the scalar names at startup.
This resembles the approach taken by the `forbiddenfruit` module for patching builtin slots, although that would be overkill here.
The timing of when we perform this patching is important - we can't do it until after `numpy.core._umath_multiarray` has been loaded, but we need to do it before `numpy.core._add_newdocs` generates the name-based docstrings.
Similarly, we can't just disable `numpy.core._add_newdocs` until later, as it populates docstrings in `ndarray` on which `numpy.ma.core` does further processing.
To resolve this, we split out the scalar docstrings in `numpy.core._add_newdocs` into a new module `numpy.core._add_newdocs_scalars` that _is_ safe to disable until later.
|
| |
| |
| |
| |
| |
| | |
Previously, these would all link to `numpy/core/__init__.py`.
Now the scalar type and `ndarray` link to the files where the `PyTypeObject` is defined.
In future, we should do this for all extension types, probably automatically.
|
|/ |
|
|
|
| |
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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`.
|
|
|
|
|
| |
Switch from pdflatex to xelatex as the latex engine used for
generating the latex/pdf version of the documentation.
|
|
|
| |
Update Year 2019 -> 2020
|
|\
| |
| | |
DOC: Added tutorial about linear algebra on multidimensional arrays
|
| |
| |
| |
| | |
external docs.
|
| |
| |
| |
| |
| |
| |
| | |
* 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)
|
| |
| |
| |
| |
| |
| | |
* PEP 8: "Imports should usually be on separate lines"
* Where modified, sort imported modules alphabetically
* Clean-up unused imports from these expanded lines
|
|/
|
|
|
|
|
| |
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
|
|
|
|
|
| |
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
|
|
|
|
|
|
|
|
|
|
|
| |
Memo: latex_preamble got removed from Sphinx at 1.6.1, and old
LaTeX package expdlist requires a fix else it breaks LaTeX
if a description list is in a table cell, and it causes anyhow
many LaTeX complaints about Underfull box (badness 10000).
The fix for these complaints is copied over from
https://github.com/scipy/scipy/commit/c881fdea7a7ef7c518b789
and it turns out it is also a fix for the crash in case
a description list is in a table..
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Add closed option to randint to simplify some cases
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
first cut at building randomgen
upgrade 'cythonize' and fix absolute imports to relative
define NPY_NO_DEPRECATED_API and fix other warnings
enable pgc64 by always using PCG_EMULATED_MATH
refactor so import randomgen works
add TODO comments for pcg64 improvements
fix imports, module name in setup.py; remove _testing
make cythonize non-recursive, restore examples to proper place
update to randomgen 7bca296c0b9
replace mtrand with LegacyGenerator, tweak for compatibility
port f879ef4 to fix GH10839
minimized difference between generator.pyx and _legacy.pyx
fix namespace in doctests, mark results that are random
update to randomgen commit 95c8cdd1c
Incorporate testing of edge cases into main tests
Rename test files to describe their purpose
Import import locations to reflect numpy paths
Correct tolerance on float32 tests
Remove set_printoptions
Remove complex normal
Remove future imports
Pull in BasicRNG source changes from original author
Small doc fixes
_mtrand => _rand
Improve consistency of nan handling
Prevent nans prducing values from int functions
add randomgen documentation to the tree
|
| |
|
|
|
|
| |
Fixes #11639, relates to https://bugs.python.org/issue1764286
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Currently the (source code, png, pdf) links for docstring examples
are pointing to missing files and give 404 errors (see issue #9500).
This commit removes those links by modifying doc/source/conf.py.
|
| |
|
|
|
|
| |
Bare except is very rarely the right thing
|
|
|
|
|
| |
Bring into compliance with current ndarray.__array_ufunc__
implementation and type casting hierarchy.
|
| |
|
|
|
|
|
| |
This makes it possible to directly use matplotlib references such as
:func:`matplotlib.pyplot.imshow`.
|
|
|
|
|
|
|
|
|
| |
Instances remain for NumpyVersion and Numpy.rec.fromarrays that are
references to code.
Release notes were left unchanged.
see issue #7986
|
| |
|
|
|
|
| |
Now is as good a time as any with open PR's at a low.
|
| |
|
|
|
|
|
| |
It was broken, and after fixing it looked quite useless.
Update in conf.py is because `html_use_modindex` is deprecated.
|