@@ -103,6 +103,15 @@ def dask_arange(
103
103
matrix_transpose = get_xp (da )(_aliases .matrix_transpose )
104
104
vecdot = get_xp (da )(_aliases .vecdot )
105
105
106
+ nonzero = get_xp (da )(_aliases .nonzero )
107
+ sum = get_xp (np )(_aliases .sum )
108
+ prod = get_xp (np )(_aliases .prod )
109
+ ceil = get_xp (np )(_aliases .ceil )
110
+ floor = get_xp (np )(_aliases .floor )
111
+ trunc = get_xp (np )(_aliases .trunc )
112
+ matmul = get_xp (np )(_aliases .matmul )
113
+ tensordot = get_xp (np )(_aliases .tensordot )
114
+
106
115
from dask .array import (
107
116
# Element wise aliases
108
117
arccos as acos ,
@@ -120,9 +129,17 @@ def dask_arange(
120
129
concatenate as concat ,
121
130
)
122
131
123
- del da , partial
132
+ # exclude these from all since
133
+ _da_unsupported = ['sort' , 'argsort' ]
134
+
135
+ common_aliases = [alias for alias in _aliases .__all__ if alias not in _da_unsupported ]
136
+
137
+ __all__ = common_aliases + ['asarray' , 'bool' , 'acos' ,
138
+ 'acosh' , 'asin' , 'asinh' , 'atan' , 'atan2' ,
139
+ 'atanh' , 'bitwise_left_shift' , 'bitwise_invert' ,
140
+ 'bitwise_right_shift' , 'concat' , 'pow' ,
141
+ 'e' , 'inf' , 'nan' , 'pi' , 'newaxis' , 'float32' , 'float64' , 'int8' ,
142
+ 'int16' , 'int32' , 'int64' , 'uint8' , 'uint16' , 'uint32' , 'uint64' ,
143
+ 'complex64' , 'complex128' , 'iinfo' , 'finfo' , 'can_cast' , 'result_type' ]
124
144
125
- __all__ = _aliases .__all__ + ['asarray' , 'bool' , 'acos' ,
126
- 'acosh' , 'asin' , 'asinh' , 'atan' , 'atan2' ,
127
- 'atanh' , 'bitwise_left_shift' , 'bitwise_invert' ,
128
- 'bitwise_right_shift' , 'concat' , 'pow' ]
145
+ del da , partial , common_aliases , _da_unsupported ,
0 commit comments