Skip to content

Commit

Permalink
Made stub files for the rest; not done yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed Dec 27, 2023
1 parent b2539e7 commit 3a706ee
Show file tree
Hide file tree
Showing 9 changed files with 99 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,5 @@ messages_control.disable = [
"R1705", # I like my if (return) elif (return) else (return) pattern
"R0801", # Different files can have similar lines; that's okay
"C0302", # I can have as many lines as I want; what's it with you?
"C0103", # FIXME temporary
]
9 changes: 9 additions & 0 deletions src/ragged/common/_indexing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/ragged/blob/main/LICENSE

"""
https://data-apis.org/array-api/latest/API_specification/indexing_functions.html
"""

from __future__ import annotations

take = None
12 changes: 12 additions & 0 deletions src/ragged/common/_linalg.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/ragged/blob/main/LICENSE

"""
https://data-apis.org/array-api/latest/API_specification/linear_algebra_functions.html
"""

from __future__ import annotations

matmul = None
matrix_transpose = None
tensordot = None
vecdot = None
18 changes: 18 additions & 0 deletions src/ragged/common/_manipulation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/ragged/blob/main/LICENSE

"""
https://data-apis.org/array-api/latest/API_specification/manipulation_functions.html
"""

from __future__ import annotations

broadcast_arrays = None
broadcast_to = None
concat = None
expand_dims = None
flip = None
permute_dims = None
reshape = None
roll = None
squeeze = None
stack = None
12 changes: 12 additions & 0 deletions src/ragged/common/_search.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/ragged/blob/main/LICENSE

"""
https://data-apis.org/array-api/latest/API_specification/searching_functions.html
"""

from __future__ import annotations

argmax = None
argmin = None
nonzero = None
where = None
12 changes: 12 additions & 0 deletions src/ragged/common/_set.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/ragged/blob/main/LICENSE

"""
https://data-apis.org/array-api/latest/API_specification/set_functions.html
"""

from __future__ import annotations

unique_all = None
unique_counts = None
unique_inverse = None
unique_values = None
10 changes: 10 additions & 0 deletions src/ragged/common/_sorting.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/ragged/blob/main/LICENSE

"""
https://data-apis.org/array-api/latest/API_specification/sorting_functions.html
"""

from __future__ import annotations

argsort = None
sort = None
15 changes: 15 additions & 0 deletions src/ragged/common/_statistical.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/ragged/blob/main/LICENSE

"""
https://data-apis.org/array-api/latest/API_specification/statistical_functions.html
"""

from __future__ import annotations

max = None # pylint: disable=W0622
mean = None
min = None # pylint: disable=W0622
prod = None
std = None
sum = None # pylint: disable=W0622
var = None
10 changes: 10 additions & 0 deletions src/ragged/common/_utility.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/ragged/blob/main/LICENSE

"""
https://data-apis.org/array-api/latest/API_specification/utility_functions.html
"""

from __future__ import annotations

all = None # pylint: disable=W0622
any = None # pylint: disable=W0622

0 comments on commit 3a706ee

Please sign in to comment.