Skip to content

Commit

Permalink
feat: add constants. (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski authored Dec 27, 2023
1 parent 6d9a8fa commit 4bfc829
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/ragged/common/_const.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/ragged/blob/main/LICENSE

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

from __future__ import annotations

from numpy import e, inf, nan, newaxis, pi

__all__ = ["e", "inf", "nan", "newaxis", "pi"]
11 changes: 11 additions & 0 deletions src/ragged/v202212/_const.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/ragged/blob/main/LICENSE

"""
https://data-apis.org/array-api/2022.12/API_specification/constants.html
"""

from __future__ import annotations

from ..common._const import e, inf, nan, newaxis, pi

__all__ = ["e", "inf", "nan", "newaxis", "pi"]

0 comments on commit 4bfc829

Please sign in to comment.