decent-array 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.
Files changed (59) hide show
  1. decent_array-0.1.0/.github/CODEOWNERS +1 -0
  2. decent_array-0.1.0/.github/workflows/ci.yaml +171 -0
  3. decent_array-0.1.0/.gitignore +13 -0
  4. decent_array-0.1.0/LICENSE +661 -0
  5. decent_array-0.1.0/PKG-INFO +36 -0
  6. decent_array-0.1.0/README.md +1 -0
  7. decent_array-0.1.0/benchmarks/bench_array.py +71 -0
  8. decent_array-0.1.0/benchmarks/bench_common.py +179 -0
  9. decent_array-0.1.0/benchmarks/bench_iop.py +136 -0
  10. decent_array-0.1.0/benchmarks/profile_hotpath.py +111 -0
  11. decent_array-0.1.0/decent_array/__init__.py +8 -0
  12. decent_array-0.1.0/decent_array/_array.py +455 -0
  13. decent_array-0.1.0/decent_array/interoperability/__init__.py +155 -0
  14. decent_array-0.1.0/decent_array/interoperability/_abstracts/__init__.py +3 -0
  15. decent_array-0.1.0/decent_array/interoperability/_abstracts/backend.py +395 -0
  16. decent_array-0.1.0/decent_array/interoperability/_backend_manager.py +204 -0
  17. decent_array-0.1.0/decent_array/interoperability/_iop/__init__.py +0 -0
  18. decent_array-0.1.0/decent_array/interoperability/_iop/bit_operators.py +75 -0
  19. decent_array-0.1.0/decent_array/interoperability/_iop/comparasion.py +75 -0
  20. decent_array-0.1.0/decent_array/interoperability/_iop/creation.py +68 -0
  21. decent_array-0.1.0/decent_array/interoperability/_iop/linalg.py +86 -0
  22. decent_array-0.1.0/decent_array/interoperability/_iop/manipulations.py +163 -0
  23. decent_array-0.1.0/decent_array/interoperability/_iop/math.py +149 -0
  24. decent_array-0.1.0/decent_array/interoperability/_iop/operators.py +61 -0
  25. decent_array-0.1.0/decent_array/interoperability/_iop/reductions.py +91 -0
  26. decent_array-0.1.0/decent_array/interoperability/_iop/rng.py +220 -0
  27. decent_array-0.1.0/decent_array/interoperability/_iop/utils.py +62 -0
  28. decent_array-0.1.0/decent_array/interoperability/_jax/__init__.py +5 -0
  29. decent_array-0.1.0/decent_array/interoperability/_jax/jax_backend.py +385 -0
  30. decent_array-0.1.0/decent_array/interoperability/_numpy/__init__.py +5 -0
  31. decent_array-0.1.0/decent_array/interoperability/_numpy/numpy_backend.py +379 -0
  32. decent_array-0.1.0/decent_array/interoperability/_pytorch/__init__.py +5 -0
  33. decent_array-0.1.0/decent_array/interoperability/_pytorch/pytorch_backend.py +426 -0
  34. decent_array-0.1.0/decent_array/interoperability/_tensorflow/__init__.py +5 -0
  35. decent_array-0.1.0/decent_array/interoperability/_tensorflow/tensorflow_backend.py +438 -0
  36. decent_array-0.1.0/decent_array/types.py +75 -0
  37. decent_array-0.1.0/docs/Makefile +20 -0
  38. decent_array-0.1.0/docs/make.bat +35 -0
  39. decent_array-0.1.0/docs/source/_static/custom.css +6 -0
  40. decent_array-0.1.0/docs/source/_static/logo.png +0 -0
  41. decent_array-0.1.0/docs/source/_templates/module.rst.jinja +8 -0
  42. decent_array-0.1.0/docs/source/_templates/package.rst.jinja +49 -0
  43. decent_array-0.1.0/docs/source/api/decent_array.array.rst +7 -0
  44. decent_array-0.1.0/docs/source/api/decent_array.interoperability.rst +7 -0
  45. decent_array-0.1.0/docs/source/api/decent_array.rst +9 -0
  46. decent_array-0.1.0/docs/source/api/decent_array.types.rst +7 -0
  47. decent_array-0.1.0/docs/source/author.rst +4 -0
  48. decent_array-0.1.0/docs/source/conf.py +134 -0
  49. decent_array-0.1.0/docs/source/developer.rst +210 -0
  50. decent_array-0.1.0/docs/source/index.rst +14 -0
  51. decent_array-0.1.0/docs/source/user.rst +10 -0
  52. decent_array-0.1.0/docs/sphinx_theme.txt +2 -0
  53. decent_array-0.1.0/pyproject.toml +198 -0
  54. decent_array-0.1.0/readthedocs.yaml +27 -0
  55. decent_array-0.1.0/tests/conftest.py +121 -0
  56. decent_array-0.1.0/tests/test_array.py +531 -0
  57. decent_array-0.1.0/tests/test_backend_manager.py +204 -0
  58. decent_array-0.1.0/tests/test_iop_functions.py +703 -0
  59. decent_array-0.1.0/tests/test_iop_rng.py +216 -0
@@ -0,0 +1 @@
1
+ * @Simpag @nicola-bastianello
@@ -0,0 +1,171 @@
1
+ name: ci
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [ main ]
6
+
7
+ jobs:
8
+ mypy:
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - name: Check out code
13
+ uses: actions/checkout@v4
14
+
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v5
17
+ with:
18
+ python-version: "3.13"
19
+
20
+ - name: Install tox
21
+ run: pip install tox
22
+
23
+ - name: Run mypy
24
+ run: tox -e mypy
25
+
26
+ pytest-macos-latest:
27
+ runs-on: "macos-latest"
28
+
29
+ steps:
30
+ - name: Check out code
31
+ uses: actions/checkout@v4
32
+
33
+ - name: Set up Python
34
+ uses: actions/setup-python@v5
35
+ with:
36
+ python-version: "3.13"
37
+
38
+ - name: Install tox
39
+ run: pip install tox
40
+
41
+ - name: Run pytest
42
+ run: tox -e pytest
43
+
44
+ pytest-ubuntu-latest:
45
+ runs-on: "ubuntu-latest"
46
+
47
+ steps:
48
+ - name: Check out code
49
+ uses: actions/checkout@v4
50
+
51
+ - name: Set up Python
52
+ uses: actions/setup-python@v5
53
+ with:
54
+ python-version: "3.13"
55
+
56
+ - name: Install tox
57
+ run: pip install tox
58
+
59
+ - name: Run pytest
60
+ run: tox -e pytest
61
+
62
+ pytest-windows-latest:
63
+ runs-on: "windows-latest"
64
+
65
+ steps:
66
+ - name: Check out code
67
+ uses: actions/checkout@v4
68
+
69
+ - name: Set up Python
70
+ uses: actions/setup-python@v5
71
+ with:
72
+ python-version: "3.13"
73
+
74
+ - name: Install tox
75
+ run: pip install tox
76
+
77
+ - name: Run pytest
78
+ run: tox -e pytest
79
+
80
+ ruff:
81
+ runs-on: ubuntu-latest
82
+
83
+ steps:
84
+ - name: Check out code
85
+ uses: actions/checkout@v4
86
+
87
+ - name: Set up Python
88
+ uses: actions/setup-python@v5
89
+ with:
90
+ python-version: "3.13"
91
+
92
+ - name: Install tox
93
+ run: pip install tox
94
+
95
+ - name: Run ruff
96
+ run: tox -e ruff
97
+
98
+ sphinx:
99
+ runs-on: ubuntu-latest
100
+
101
+ steps:
102
+ - name: Check out code
103
+ uses: actions/checkout@v4
104
+
105
+ - name: Set up Python
106
+ uses: actions/setup-python@v5
107
+ with:
108
+ python-version: "3.13"
109
+
110
+ - name: Install tox
111
+ run: pip install tox
112
+
113
+ - name: Run sphinx
114
+ run: tox -e sphinx
115
+
116
+ - name: Check git diff
117
+ run: git diff --exit-code || { echo 'Error - Docs are stale, please regenerate with `tox -e sphinx`.'; exit 1; }
118
+
119
+ mypyc-macos-latest:
120
+ runs-on: "macos-latest"
121
+
122
+ steps:
123
+ - name: Check out code
124
+ uses: actions/checkout@v4
125
+
126
+ - name: Set up Python
127
+ uses: actions/setup-python@v5
128
+ with:
129
+ python-version: "3.13"
130
+
131
+ - name: Install tox
132
+ run: pip install tox
133
+
134
+ - name: Run mypyc
135
+ run: tox -e mypyc
136
+
137
+ mypyc-ubuntu-latest:
138
+ runs-on: "ubuntu-latest"
139
+
140
+ steps:
141
+ - name: Check out code
142
+ uses: actions/checkout@v4
143
+
144
+ - name: Set up Python
145
+ uses: actions/setup-python@v5
146
+ with:
147
+ python-version: "3.13"
148
+
149
+ - name: Install tox
150
+ run: pip install tox
151
+
152
+ - name: Run mypyc
153
+ run: tox -e mypyc
154
+
155
+ mypyc-windows-latest:
156
+ runs-on: "windows-latest"
157
+
158
+ steps:
159
+ - name: Check out code
160
+ uses: actions/checkout@v4
161
+
162
+ - name: Set up Python
163
+ uses: actions/setup-python@v5
164
+ with:
165
+ python-version: "3.13"
166
+
167
+ - name: Install tox
168
+ run: pip install tox
169
+
170
+ - name: Run mypyc
171
+ run: tox -e mypyc
@@ -0,0 +1,13 @@
1
+ **/__pycache__
2
+ **/build
3
+ *.egg-info
4
+ *.so
5
+ .DS_Store
6
+ .mypy_cache
7
+ .tox
8
+ .vscode
9
+ dist
10
+ pyrightconfig.json
11
+ .claude
12
+ *.py[codz]
13
+ *$py.class