Skip to content

Commit ab70b6f

Browse files
committed
Building blocks for python array API support
1 parent 98aaaa2 commit ab70b6f

File tree

4 files changed

+605
-20
lines changed

4 files changed

+605
-20
lines changed

odl/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import numpy as np
2020

2121
__all__ = (
22+
'array_API_support'
2223
'set',
2324
'space',
2425
'operator',
@@ -58,6 +59,7 @@
5859
from .operator import *
5960
from .set import *
6061
from .space import *
62+
from .array_API_support import *
6163

6264
# More "advanced" subpackages keep their namespaces separate from top-level,
6365
# we only import the modules themselves
@@ -79,4 +81,5 @@
7981
__all__ += operator.__all__
8082
__all__ += set.__all__
8183
__all__ += space.__all__
84+
__all__ += array_API_support.__all__
8285
__all__ += ('test',)

odl/array_API_support/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2014-2025 The ODL contributors
2+
#
3+
# This file is part of ODL.
4+
#
5+
# This Source Code Form is subject to the terms of the Mozilla Public License,
6+
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
7+
# obtain one at https://mozilla.org/MPL/2.0/.
8+
9+
"""Python Array API support."""
10+
11+
from __future__ import absolute_import
12+
13+
from .element_wise import *
14+
15+
__all__ = ()
16+
__all__ += element_wise.__all__

0 commit comments

Comments
 (0)