| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
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.
|
|
|
|
|
|
|
| |
Add `print_function` to all `from __future__ import ...` statements
and use the python3 print function syntax everywhere.
Closes #3078.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The new import `absolute_import` is added the `from __future__ import`
statement and The 2to3 `import` fixer is run to make the imports
compatible. There are several things that need to be dealt with to make
this work.
1) Files meant to be run as scripts run in a different environment than
files imported as part of a package, and so changes to those files need
to be skipped. The affected script files are:
* all setup.py files
* numpy/core/code_generators/generate_umath.py
* numpy/core/code_generators/generate_numpy_api.py
* numpy/core/code_generators/generate_ufunc_api.py
2) Some imported modules are not available as they are created during
the build process and consequently 2to3 is unable to handle them
correctly. Files that import those modules need a bit of extra work.
The affected files are:
* core/__init__.py,
* core/numeric.py,
* core/_internal.py,
* core/arrayprint.py,
* core/fromnumeric.py,
* numpy/__init__.py,
* lib/npyio.py,
* lib/function_base.py,
* fft/fftpack.py,
* random/__init__.py
Closes #3172
|
| |
|
|
|
|
|
|
|
|
| |
This should be harmless, as we already are division clean. However,
placement of this import takes some care. In the future a script
can be used to append new features without worry, at least until
such time as it exceeds a single line. Having that ability will
make it easier to deal with absolute imports and printing updates.
|
| |
|
| |
|
| |
|
|
|
|
| |
matplotlib's plot_directive. Requires that matplotlib have the new "merged" plot_directive. (#1074)
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
example code
|
|
|
|
| |
links for Latex
|