| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
In Python 3, the default source file encoding is UTF-8.
|
|
|
|
| |
isn't available.
|
| |
|
|
|
|
|
|
|
|
| |
* DOC: Reorganized documentation contribution docs
1. Removed Documentation conventions page
2. Merged A guide to NumPy documentation into How to contribute to NumPy documentation
3. Moved Building NumPy reference and docs to Development section
4. Removed the Documentation index stub
|
|
|
|
|
|
|
|
|
|
|
| |
* Add navbar link to numpy-tutorials.
* External links instead of tutorials stub.
* Update tutorial-svd link to intersphinx.
* Point tutorials to features, not applications.
* Fix linter
|
|\
| |
| | |
DOC: Unpin pydata sphinx theme and update config to avoid long doc build times
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
As of v0.6, the pydata-sphinx-theme has a collapsible navigation
feature for the sidebar that significantly increases the build time
and html file size for the docs.
We had originally pinned to 0.5.2 to avoid this, but the feature is
now configurable with the collapse_navigation=True value.
Remove the upper-bound pinning the theme and instead use the
configuration option to keep doc build times reasonable.
|
|/
|
|
| |
Ignore re-exports as their source files are not within the numpy repo.
|
| |
|
| |
|
|
|
|
| |
Co-authored-by: Lima Tango <19208585+lima-tango@users.noreply.github.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Upload docs to main branch of neps/devdocs
* Update `master` to `main` to be consistent with current state of renaming
* Remove badges from README
* Replace remaining instances of `master` with `main`
* Add back logo
* Fix CircleCI branch checks
* Fix GA branch name
* master->main in issue templates.
* master->main for 2 links to numpy archive.
* Change master to main in NEP 23
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|