orthax 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
orthax-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Rory Conlin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ include versioneer.py
2
+ include orthax/_version.py
orthax-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,84 @@
1
+ Metadata-Version: 2.1
2
+ Name: orthax
3
+ Version: 0.1.0
4
+ Summary: Orthogonal polynomials with JAX
5
+ Home-page: https://github.com/f0uriest/orthax
6
+ Author: Rory Conlin
7
+ Author-email: wconlin@princeton.edu
8
+ License: MIT
9
+ Project-URL: Issues Tracker, https://github.com/f0uriest/orthax/issues
10
+ Project-URL: Contributing, https://github.com/f0uriest/orthax/blob/master/CONTRIBUTING.rst
11
+ Project-URL: Source Code, https://github.com/f0uriest/orthax/
12
+ Project-URL: Documentation, https://orthax.readthedocs.io/
13
+ Keywords: polynomial orthogonal hermite laguerre legendre chebyshev
14
+ Classifier: Development Status :: 3 - Alpha
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Natural Language :: English
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.8
20
+ Classifier: Programming Language :: Python :: 3.9
21
+ Classifier: Programming Language :: Python :: 3.10
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Topic :: Scientific/Engineering
24
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
25
+ Requires-Python: >=3.8
26
+ Description-Content-Type: text/x-rst
27
+ License-File: LICENSE
28
+ Requires-Dist: jax<=0.5.0,>=0.3.2
29
+ Requires-Dist: numpy<2.0,>=1.20.0
30
+
31
+
32
+ ########
33
+ orthax
34
+ ########
35
+ |License| |DOI| |Issues| |Pypi|
36
+
37
+ |Docs| |UnitTests| |Codecov|
38
+
39
+ ``orthax`` is a Python package for working with orthogonal (and other) polynomials in JAX.
40
+ It largely seeks to replicate the functionality of the ``numpy.polynomial`` package,
41
+ through there are some API differences due to limitations of JAX, primarily that
42
+ trailing zeros are not automatically trimmed from series, so you should do that
43
+ manually if it becomes a concern.
44
+
45
+ For full details of various options see the `Documentation <https://orthax.readthedocs.io/en/latest/>`__
46
+
47
+ Installation
48
+ ============
49
+
50
+ orthax is installable with ``pip``:
51
+
52
+ .. code-block:: console
53
+
54
+ pip install orthax
55
+
56
+
57
+
58
+ .. |License| image:: https://img.shields.io/github/license/f0uriest/orthax?color=blue&logo=open-source-initiative&logoColor=white
59
+ :target: https://github.com/f0uriest/orthax/blob/master/LICENSE
60
+ :alt: License
61
+
62
+ .. |DOI| image:: https://zenodo.org/badge/709132830.svg
63
+ :target: https://zenodo.org/doi/10.5281/zenodo.10035983
64
+ :alt: DOI
65
+
66
+ .. |Docs| image:: https://img.shields.io/readthedocs/orthax?logo=Read-the-Docs
67
+ :target: https://orthax.readthedocs.io/en/latest/?badge=latest
68
+ :alt: Documentation
69
+
70
+ .. |UnitTests| image:: https://github.com/f0uriest/orthax/actions/workflows/unittest.yml/badge.svg
71
+ :target: https://github.com/f0uriest/orthax/actions/workflows/unittest.yml
72
+ :alt: UnitTests
73
+
74
+ .. |Codecov| image:: https://codecov.io/github/f0uriest/orthax/graph/badge.svg?token=MB11I7WE3I
75
+ :target: https://codecov.io/github/f0uriest/orthax
76
+ :alt: Coverage
77
+
78
+ .. |Issues| image:: https://img.shields.io/github/issues/f0uriest/orthax
79
+ :target: https://github.com/f0uriest/orthax/issues
80
+ :alt: GitHub issues
81
+
82
+ .. |Pypi| image:: https://img.shields.io/pypi/v/orthax
83
+ :target: https://pypi.org/project/orthax/
84
+ :alt: Pypi
@@ -0,0 +1,54 @@
1
+
2
+ ########
3
+ orthax
4
+ ########
5
+ |License| |DOI| |Issues| |Pypi|
6
+
7
+ |Docs| |UnitTests| |Codecov|
8
+
9
+ ``orthax`` is a Python package for working with orthogonal (and other) polynomials in JAX.
10
+ It largely seeks to replicate the functionality of the ``numpy.polynomial`` package,
11
+ through there are some API differences due to limitations of JAX, primarily that
12
+ trailing zeros are not automatically trimmed from series, so you should do that
13
+ manually if it becomes a concern.
14
+
15
+ For full details of various options see the `Documentation <https://orthax.readthedocs.io/en/latest/>`__
16
+
17
+ Installation
18
+ ============
19
+
20
+ orthax is installable with ``pip``:
21
+
22
+ .. code-block:: console
23
+
24
+ pip install orthax
25
+
26
+
27
+
28
+ .. |License| image:: https://img.shields.io/github/license/f0uriest/orthax?color=blue&logo=open-source-initiative&logoColor=white
29
+ :target: https://github.com/f0uriest/orthax/blob/master/LICENSE
30
+ :alt: License
31
+
32
+ .. |DOI| image:: https://zenodo.org/badge/709132830.svg
33
+ :target: https://zenodo.org/doi/10.5281/zenodo.10035983
34
+ :alt: DOI
35
+
36
+ .. |Docs| image:: https://img.shields.io/readthedocs/orthax?logo=Read-the-Docs
37
+ :target: https://orthax.readthedocs.io/en/latest/?badge=latest
38
+ :alt: Documentation
39
+
40
+ .. |UnitTests| image:: https://github.com/f0uriest/orthax/actions/workflows/unittest.yml/badge.svg
41
+ :target: https://github.com/f0uriest/orthax/actions/workflows/unittest.yml
42
+ :alt: UnitTests
43
+
44
+ .. |Codecov| image:: https://codecov.io/github/f0uriest/orthax/graph/badge.svg?token=MB11I7WE3I
45
+ :target: https://codecov.io/github/f0uriest/orthax
46
+ :alt: Coverage
47
+
48
+ .. |Issues| image:: https://img.shields.io/github/issues/f0uriest/orthax
49
+ :target: https://github.com/f0uriest/orthax/issues
50
+ :alt: GitHub issues
51
+
52
+ .. |Pypi| image:: https://img.shields.io/pypi/v/orthax
53
+ :target: https://pypi.org/project/orthax/
54
+ :alt: Pypi
@@ -0,0 +1,13 @@
1
+ """orthax: orthogonal polynomial series with JAX."""
2
+ from . import (
3
+ _version,
4
+ chebyshev,
5
+ hermite,
6
+ hermite_e,
7
+ laguerre,
8
+ legendre,
9
+ polynomial,
10
+ polyutils,
11
+ )
12
+
13
+ __version__ = _version.get_versions()["version"]
@@ -0,0 +1,21 @@
1
+
2
+ # This file was generated by 'versioneer.py' (0.19) from
3
+ # revision-control system data, or from the parent directory name of an
4
+ # unpacked source archive. Distribution tarballs contain a pre-generated copy
5
+ # of this file.
6
+
7
+ import json
8
+
9
+ version_json = '''
10
+ {
11
+ "date": "2024-03-03T00:03:51-0500",
12
+ "dirty": false,
13
+ "error": null,
14
+ "full-revisionid": "72c7b9d9b7073bf5f95420d40b4efc0df4fcfbe6",
15
+ "version": "0.1.0"
16
+ }
17
+ ''' # END VERSION_JSON
18
+
19
+
20
+ def get_versions():
21
+ return json.loads(version_json)