-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: nstarman <nstarkman@protonmail.com>
- Loading branch information
Showing
23 changed files
with
522 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
.. _contributing: | ||
.. _overload_numpy-contributing: | ||
|
||
***************** | ||
How to contribute | ||
How to Contribute | ||
***************** | ||
|
||
We welcome contributions from anyone via pull requests on `GitHub | ||
<https://github.com/nstarman/overload_numpy>`_. If you don't feel comfortable | ||
modifying or adding functionality, we also welcome feature requests and bug | ||
reports as `GitHub issues <https://github.com/nstarman/overload_numpy/issues>`_. | ||
reports as `GitHub Issues <https://github.com/nstarman/overload_numpy/issues>`_. | ||
|
||
Developer documentation | ||
|
||
Developer Documentation | ||
======================= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
install | ||
testing | ||
docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
############### | ||
Getting started | ||
############### | ||
|
||
|
||
.. automodule:: overload_numpy.mixin | ||
|
||
|
||
Where to go from here? | ||
====================== | ||
|
||
This page is meant to demonstrate a few initial things you may want to do with | ||
|overload_numpy|. There is much more functionality that you can discover by | ||
perusing the :ref:`user guide <overload_numpy-user-guide>`. Some other | ||
commonly-used functionality includes: | ||
|
||
* :ref:`Adding type constraints <overload_numpy-constraints>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.. _Python: http://www.python.org | ||
.. _NEP13: https://numpy.org/neps/nep-0013-ufunc-overrides.html | ||
.. _NEP18: https://numpy.org/neps/nep-0018-array-function-protocol.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. _overload_numpy-conventions: | ||
|
||
########### | ||
Conventions | ||
########### | ||
|
||
Public API | ||
========== | ||
|
||
Some things in this package are public, others are not. This is how to tell: | ||
|
||
* If a module or package defines ``__all__``, that authoritatively defines the public interface. | ||
* If something begins with a leading underscore, it and its contents are private. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,26 @@ | ||
.. _overload_numpy: | ||
.. _overload_numpy-user-guide: | ||
|
||
################################# | ||
Overload NumPy (`overload_numpy`) | ||
################################# | ||
########## | ||
User Guide | ||
########## | ||
|
||
The user guide contains exhaustive descriptions of all of the functions and | ||
classes available in ``overload_numpy``, with some inline narrative descriptions and | ||
demonstrations of functionality. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
conventions | ||
mixin | ||
register | ||
constraints | ||
|
||
|
||
.. _overload_numpy-api: | ||
Recent additions and changes | ||
============================ | ||
|
||
API | ||
=== | ||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
.. automodapi:: overload_numpy | ||
whatsnew/index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.. _overload_numpy-mixin: | ||
|
||
###################################### | ||
Mixin Bridges (`overload_numpy.mixin`) | ||
###################################### | ||
|
||
Mixins for adding |array_ufunc|_ &/or |array_function|_ methods. | ||
Choose the one that's best suited for your needs. | ||
|
||
|
||
API | ||
=== | ||
|
||
.. automodapi:: overload_numpy | ||
:no-main-docstr: | ||
:no-heading: | ||
:noindex: | ||
:skip: NumPyOverloader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.. module:: overload_numpy.overload | ||
|
||
.. _overload_numpy-overload: | ||
|
||
############################################# | ||
Override Registry (`overload_numpy.overload`) | ||
############################################# | ||
|
||
.. automodule:: overload_numpy.overload | ||
|
||
|
||
|
||
A note about |ufunc| | ||
==================== | ||
|
||
When registering a |ufunc| override a wrapper object is returned instead of the | ||
original function. On these objects only the ``__call__`` and ``register`` | ||
methods are public API. | ||
|
||
|
||
|
||
API | ||
=== | ||
|
||
.. automodapi:: overload_numpy | ||
:no-main-docstr: | ||
:no-heading: | ||
:noindex: | ||
:skip: NPArrayOverloadMixin | ||
:skip: NPArrayFuncOverloadMixin | ||
:skip: NPArrayUFuncOverloadMixin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,6 @@ Then you can run the tests with: | |
:: | ||
|
||
pytest overload_numpy | ||
|
||
|
||
== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,6 @@ | |
] | ||
dependencies = [ | ||
"mypy_extensions>=0.4.3", | ||
"numpy>=1.18", | ||
] | ||
|
||
[project.optional-dependencies] | ||
|
Oops, something went wrong.