|
27 | 27 | # ***************************************************************************** |
28 | 28 |
|
29 | 29 |
|
30 | | -from dpctl.tensor._search_functions import where |
31 | | - |
32 | | -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 ( |
33 | 33 | asnumpy, |
34 | 34 | astype, |
35 | 35 | copy, |
36 | 36 | from_numpy, |
37 | 37 | to_numpy, |
38 | 38 | ) |
39 | | -from dpctl_ext.tensor._ctors import ( |
| 39 | +from ._ctors import ( |
40 | 40 | arange, |
41 | 41 | asarray, |
42 | 42 | empty, |
|
53 | 53 | zeros, |
54 | 54 | zeros_like, |
55 | 55 | ) |
56 | | -from dpctl_ext.tensor._indexing_functions import ( |
57 | | - extract, |
58 | | - nonzero, |
59 | | - place, |
60 | | - put, |
61 | | - put_along_axis, |
62 | | - take, |
63 | | - take_along_axis, |
64 | | -) |
65 | | -from dpctl_ext.tensor._linear_algebra_functions import ( |
66 | | - matmul, |
67 | | - matrix_transpose, |
68 | | - tensordot, |
69 | | - vecdot, |
70 | | -) |
71 | | -from dpctl_ext.tensor._manipulation_functions import ( |
72 | | - broadcast_arrays, |
73 | | - broadcast_to, |
74 | | - concat, |
75 | | - expand_dims, |
76 | | - flip, |
77 | | - moveaxis, |
78 | | - permute_dims, |
79 | | - repeat, |
80 | | - roll, |
81 | | - squeeze, |
82 | | - stack, |
83 | | - swapaxes, |
84 | | - tile, |
85 | | - unstack, |
86 | | -) |
87 | | -from dpctl_ext.tensor._reshape import reshape |
88 | | -from dpctl_ext.tensor._utility_functions import all, any, diff |
89 | | - |
90 | | -from ._accumulation import cumulative_logsumexp, cumulative_prod, cumulative_sum |
91 | | -from ._clip import clip |
92 | 56 | from ._elementwise_funcs import ( |
93 | 57 | abs, |
94 | 58 | acos, |
|
132 | 96 | log1p, |
133 | 97 | log2, |
134 | 98 | log10, |
| 99 | + logaddexp, |
135 | 100 | logical_and, |
136 | 101 | logical_not, |
137 | 102 | logical_or, |
|
161 | 126 | tanh, |
162 | 127 | trunc, |
163 | 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 | +) |
164 | 160 | from ._reduction import ( |
165 | 161 | argmax, |
166 | 162 | argmin, |
|
172 | 168 | reduce_hypot, |
173 | 169 | sum, |
174 | 170 | ) |
| 171 | +from ._reshape import reshape |
| 172 | +from ._search_functions import where |
175 | 173 | from ._searchsorted import searchsorted |
176 | 174 | from ._set_functions import ( |
177 | 175 | isin, |
|
182 | 180 | ) |
183 | 181 | from ._sorting import argsort, sort, top_k |
184 | 182 | from ._type_utils import can_cast, finfo, iinfo, isdtype, result_type |
| 183 | +from ._utility_functions import all, any, diff |
185 | 184 |
|
186 | 185 | __all__ = [ |
187 | 186 | "abs", |
|
257 | 256 | "less_equal", |
258 | 257 | "linspace", |
259 | 258 | "log", |
| 259 | + "logaddexp", |
260 | 260 | "logical_and", |
261 | 261 | "logical_not", |
262 | 262 | "logical_or", |
|
0 commit comments