Commit 94ebafa
[Data API] Array Object Implementation (#261)
* Refactoring of basic functionality to create an empty Array
* Replace dim4 with CShape
* Add tests for array api. Minor fixes. Update CI
* Add arithmetic operators w/o tests
* Fix array init bug. Add __getitem__. Change pytest for active debug mode
* Add reflected arithmetic and array operators
* Place TODO for repr
* Add bitwise operators. Add in-place operators. Add missing reflected operators
* Add tests for arithmetic operators
* Added to_list and to_ctypes_array
* Fix bug when scalar is empty returns None
* Fix typing in array object. Add tests
* Change tests and found bug with reflected operators
* Fix reflected operators bug. Add test coverage for the rest of the arithmetic operators
* Add required by specification methods
* Change utils. Add docstrings
* Add docstrings for operators
* Add docstrings for other operators. Remove docstrings from mocks
* Change tags and typings
* Change typings from python 3.10 to python 3.8
* Add readme with reference to run tests
* Revert changes accidentally made in original array
* Add constructor initialization warning. Add Note on deviation from spec. Dump minimal numpy version required.
* Fix warning messages for non-standard functions
* Add NOTE tag to functions that are not a part of spec but custom solutions
---------
Co-authored-by: Anton <[email protected]>1 parent 33b0558 commit 94ebafa
File tree
16 files changed
+1773
-9
lines changed- .github/workflows
- arrayfire
- array_api
- tests
16 files changed
+1773
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments