|
27 | 27 | # ***************************************************************************** |
28 | 28 |
|
29 | 29 |
|
30 | | -from dpctl_ext.tensor._copy_utils import ( |
| 30 | +from ._accumulation import cumulative_logsumexp, cumulative_prod, cumulative_sum |
| 31 | +from ._clip import clip |
| 32 | +from ._copy_utils import ( |
31 | 33 | asnumpy, |
32 | 34 | astype, |
33 | 35 | copy, |
34 | 36 | from_numpy, |
35 | 37 | to_numpy, |
36 | 38 | ) |
37 | | -from dpctl_ext.tensor._ctors import ( |
| 39 | +from ._ctors import ( |
38 | 40 | arange, |
39 | 41 | asarray, |
40 | 42 | empty, |
|
51 | 53 | zeros, |
52 | 54 | zeros_like, |
53 | 55 | ) |
54 | | -from dpctl_ext.tensor._indexing_functions import ( |
55 | | - extract, |
56 | | - nonzero, |
57 | | - place, |
58 | | - put, |
59 | | - put_along_axis, |
60 | | - take, |
61 | | - take_along_axis, |
62 | | -) |
63 | | -from dpctl_ext.tensor._linear_algebra_functions import ( |
64 | | - matmul, |
65 | | - matrix_transpose, |
66 | | - tensordot, |
67 | | - vecdot, |
68 | | -) |
69 | | -from dpctl_ext.tensor._manipulation_functions import ( |
70 | | - broadcast_arrays, |
71 | | - broadcast_to, |
72 | | - concat, |
73 | | - expand_dims, |
74 | | - flip, |
75 | | - moveaxis, |
76 | | - permute_dims, |
77 | | - repeat, |
78 | | - roll, |
79 | | - squeeze, |
80 | | - stack, |
81 | | - swapaxes, |
82 | | - tile, |
83 | | - unstack, |
84 | | -) |
85 | | -from dpctl_ext.tensor._reshape import reshape |
86 | | -from dpctl_ext.tensor._utility_functions import all, any, diff |
87 | | - |
88 | | -from ._accumulation import cumulative_logsumexp, cumulative_prod, cumulative_sum |
89 | | -from ._clip import clip |
90 | 56 | from ._elementwise_funcs import ( |
91 | 57 | abs, |
92 | 58 | acos, |
|
130 | 96 | log1p, |
131 | 97 | log2, |
132 | 98 | log10, |
| 99 | + logaddexp, |
133 | 100 | logical_and, |
134 | 101 | logical_not, |
135 | 102 | logical_or, |
|
159 | 126 | tanh, |
160 | 127 | trunc, |
161 | 128 | ) |
| 129 | +from ._indexing_functions import ( |
| 130 | + extract, |
| 131 | + nonzero, |
| 132 | + place, |
| 133 | + put, |
| 134 | + put_along_axis, |
| 135 | + take, |
| 136 | + take_along_axis, |
| 137 | +) |
| 138 | +from ._linear_algebra_functions import ( |
| 139 | + matmul, |
| 140 | + matrix_transpose, |
| 141 | + tensordot, |
| 142 | + vecdot, |
| 143 | +) |
| 144 | +from ._manipulation_functions import ( |
| 145 | + broadcast_arrays, |
| 146 | + broadcast_to, |
| 147 | + concat, |
| 148 | + expand_dims, |
| 149 | + flip, |
| 150 | + moveaxis, |
| 151 | + permute_dims, |
| 152 | + repeat, |
| 153 | + roll, |
| 154 | + squeeze, |
| 155 | + stack, |
| 156 | + swapaxes, |
| 157 | + tile, |
| 158 | + unstack, |
| 159 | +) |
162 | 160 | from ._reduction import ( |
163 | 161 | argmax, |
164 | 162 | argmin, |
|
170 | 168 | reduce_hypot, |
171 | 169 | sum, |
172 | 170 | ) |
| 171 | +from ._reshape import reshape |
173 | 172 | from ._search_functions import where |
174 | 173 | from ._searchsorted import searchsorted |
175 | 174 | from ._set_functions import ( |
|
183 | 182 | from ._statistical_functions import mean, std, var |
184 | 183 | from ._testing import allclose |
185 | 184 | from ._type_utils import can_cast, finfo, iinfo, isdtype, result_type |
| 185 | +from ._utility_functions import all, any, diff |
186 | 186 |
|
187 | 187 | __all__ = [ |
188 | 188 | "abs", |
|
259 | 259 | "less_equal", |
260 | 260 | "linspace", |
261 | 261 | "log", |
| 262 | + "logaddexp", |
262 | 263 | "logical_and", |
263 | 264 | "logical_not", |
264 | 265 | "logical_or", |
|
0 commit comments