@@ -38,7 +38,6 @@ and the rest of the library
38
38
__all__ += [
39
39
" dpnp_absolute" ,
40
40
" dpnp_arctan2" ,
41
- " dpnp_around" ,
42
41
" dpnp_copysign" ,
43
42
" dpnp_cross" ,
44
43
" dpnp_cumprod" ,
@@ -72,9 +71,6 @@ ctypedef c_dpctl.DPCTLSyclEventRef(*fptr_1in_2out_t)(c_dpctl.DPCTLSyclQueueRef,
72
71
ctypedef c_dpctl.DPCTLSyclEventRef(* ftpr_custom_trapz_2in_1out_with_2size_t)(c_dpctl.DPCTLSyclQueueRef,
73
72
void * , void * , void * , double , size_t, size_t,
74
73
const c_dpctl.DPCTLEventVectorRef)
75
- ctypedef c_dpctl.DPCTLSyclEventRef(* ftpr_custom_around_1in_1out_t)(c_dpctl.DPCTLSyclQueueRef,
76
- const void * , void * , const size_t, const int ,
77
- const c_dpctl.DPCTLEventVectorRef)
78
74
79
75
80
76
cpdef utils.dpnp_descriptor dpnp_absolute(utils.dpnp_descriptor x1):
@@ -120,38 +116,6 @@ cpdef utils.dpnp_descriptor dpnp_arctan2(utils.dpnp_descriptor x1_obj,
120
116
return call_fptr_2in_1out_strides(DPNP_FN_ARCTAN2_EXT, x1_obj, x2_obj, dtype, out, where, func_name = " arctan2" )
121
117
122
118
123
- cpdef utils.dpnp_descriptor dpnp_around(utils.dpnp_descriptor x1, int decimals):
124
-
125
- cdef DPNPFuncType param1_type = dpnp_dtype_to_DPNPFuncType(x1.dtype)
126
-
127
- cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_AROUND_EXT, param1_type, param1_type)
128
-
129
- x1_obj = x1.get_array()
130
-
131
- # ceate result array with type given by FPTR data
132
- cdef shape_type_c result_shape = x1.shape
133
- cdef utils.dpnp_descriptor result = utils.create_output_descriptor(result_shape,
134
- kernel_data.return_type,
135
- None ,
136
- device = x1_obj.sycl_device,
137
- usm_type = x1_obj.usm_type,
138
- sycl_queue = x1_obj.sycl_queue)
139
-
140
- result_sycl_queue = result.get_array().sycl_queue
141
-
142
- cdef c_dpctl.SyclQueue q = < c_dpctl.SyclQueue> result_sycl_queue
143
- cdef c_dpctl.DPCTLSyclQueueRef q_ref = q.get_queue_ref()
144
-
145
- cdef ftpr_custom_around_1in_1out_t func = < ftpr_custom_around_1in_1out_t > kernel_data.ptr
146
-
147
- cdef c_dpctl.DPCTLSyclEventRef event_ref = func(q_ref, x1.get_data(), result.get_data(), x1.size, decimals, NULL )
148
-
149
- with nogil: c_dpctl.DPCTLEvent_WaitAndThrow(event_ref)
150
- c_dpctl.DPCTLEvent_Delete(event_ref)
151
-
152
- return result
153
-
154
-
155
119
cpdef utils.dpnp_descriptor dpnp_copysign(utils.dpnp_descriptor x1_obj,
156
120
utils.dpnp_descriptor x2_obj,
157
121
object dtype = None ,
0 commit comments