@@ -56,10 +56,10 @@ __all__ += [
56
56
]
57
57
58
58
59
- ctypedef void (* custom_1in_1out_func_ptr_t)(void * , void * , const int , size_t * , size_t * , const size_t, const size_t)
60
- ctypedef void (* ftpr_custom_vander_1in_1out_t)(void * , void * , size_t, size_t, int )
61
- ctypedef void (* custom_indexing_1out_func_ptr_t)(void * , const size_t , const size_t , const int )
62
- ctypedef void (* fptr_dpnp_trace_t)(const void * , void * , const size_t * , const size_t)
59
+ ctypedef void (* custom_1in_1out_func_ptr_t)(void * , void * , const int , size_t * , size_t * , const size_t, const size_t)
60
+ ctypedef void (* ftpr_custom_vander_1in_1out_t)(void * , void * , size_t, size_t, int )
61
+ ctypedef void (* custom_indexing_1out_func_ptr_t)(void * , const size_t , const size_t , const int )
62
+ ctypedef void (* fptr_dpnp_trace_t)(const void * , void * , const size_t * , const size_t)
63
63
64
64
65
65
cpdef utils.dpnp_descriptor dpnp_copy(utils.dpnp_descriptor x1, order, subok):
@@ -87,7 +87,7 @@ cpdef utils.dpnp_descriptor dpnp_diag(utils.dpnp_descriptor v, int k):
87
87
88
88
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_DIAG, param1_type, param1_type)
89
89
90
- result_type = dpnp_DPNPFuncType_to_dtype(< size_t > kernel_data.return_type)
90
+ result_type = dpnp_DPNPFuncType_to_dtype( < size_t > kernel_data.return_type)
91
91
92
92
cdef custom_1in_1out_func_ptr_t func = < custom_1in_1out_func_ptr_t > kernel_data.ptr
93
93
cdef dparray_shape_type result_shape = result.shape
@@ -105,12 +105,12 @@ cpdef utils.dpnp_descriptor dpnp_full(result_shape, value_in, result_dtype):
105
105
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_FULL, dtype_in, DPNP_FT_NONE)
106
106
107
107
# Create single-element input fill array with type given by FPTR data
108
- cdef dparray_shape_type shape_in = (1 ,)
108
+ cdef dparray_shape_type shape_in = (1 ,)
109
109
cdef utils.dpnp_descriptor array_fill = utils.create_output_descriptor(shape_in, kernel_data.return_type, None )
110
110
array_fill.get_pyobj()[0 ] = value_in
111
111
112
112
# ceate result array with type given by FPTR data
113
- cdef dparray_shape_type result_shape_c = utils._object_to_tuple(result_shape)
113
+ cdef dparray_shape_type result_shape_c = utils._object_to_tuple(result_shape)
114
114
cdef utils.dpnp_descriptor result = utils.create_output_descriptor(result_shape_c, kernel_data.return_type, None )
115
115
116
116
cdef fptr_1in_1out_t func = < fptr_1in_1out_t > kernel_data.ptr
@@ -127,7 +127,7 @@ cpdef dparray dpnp_full_like(result_shape, value_in, result_dtype):
127
127
# get the FPTR data structure
128
128
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_FULL_LIKE, dtype_in, DPNP_FT_NONE)
129
129
130
- result_type = dpnp_DPNPFuncType_to_dtype(< size_t > kernel_data.return_type)
130
+ result_type = dpnp_DPNPFuncType_to_dtype( < size_t > kernel_data.return_type)
131
131
# Create single-element input array with type given by FPTR data
132
132
cdef dparray_shape_type shape_in = (1 ,)
133
133
cdef dparray array_in = dparray(shape_in, dtype = result_type)
@@ -174,7 +174,7 @@ cpdef dparray dpnp_identity(n, result_dtype):
174
174
175
175
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_IDENTITY, dtype_in, DPNP_FT_NONE)
176
176
177
- result_type = dpnp_DPNPFuncType_to_dtype( < size_t > kernel_data.return_type)
177
+ result_type = dpnp_DPNPFuncType_to_dtype(< size_t > kernel_data.return_type)
178
178
179
179
cdef dparray result = dparray((n, n), dtype = result_type)
180
180
@@ -284,7 +284,7 @@ cpdef dparray dpnp_trace(arr, offset=0, axis1=0, axis2=1, dtype=None, out=None):
284
284
285
285
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_TRACE, param1_type, param2_type)
286
286
287
- result_type = dpnp_DPNPFuncType_to_dtype( < size_t > kernel_data.return_type)
287
+ result_type = dpnp_DPNPFuncType_to_dtype(< size_t > kernel_data.return_type)
288
288
cdef dparray result = dparray(diagonal_arr.shape[:- 1 ], dtype = result_type)
289
289
290
290
cdef fptr_dpnp_trace_t func = < fptr_dpnp_trace_t > kernel_data.ptr
@@ -307,7 +307,7 @@ cpdef dparray dpnp_tri(N, M=None, k=0, dtype=numpy.float):
307
307
308
308
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_TRI, param1_type, param1_type)
309
309
310
- result_type = dpnp_DPNPFuncType_to_dtype( < size_t > kernel_data.return_type)
310
+ result_type = dpnp_DPNPFuncType_to_dtype(< size_t > kernel_data.return_type)
311
311
312
312
result = dparray(shape = (N, M), dtype = result_type)
313
313
@@ -331,7 +331,7 @@ cpdef dparray dpnp_tril(dparray m, int k):
331
331
332
332
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_TRIL, param1_type, param1_type)
333
333
334
- result_type = dpnp_DPNPFuncType_to_dtype(< size_t > kernel_data.return_type)
334
+ result_type = dpnp_DPNPFuncType_to_dtype( < size_t > kernel_data.return_type)
335
335
336
336
cdef custom_1in_1out_func_ptr_t func = < custom_1in_1out_func_ptr_t > kernel_data.ptr
337
337
@@ -364,7 +364,7 @@ cpdef dparray dpnp_vander(dparray x1, int N, int increasing):
364
364
365
365
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_VANDER, param1_type, DPNP_FT_NONE)
366
366
367
- result_type = dpnp_DPNPFuncType_to_dtype(< size_t > kernel_data.return_type)
367
+ result_type = dpnp_DPNPFuncType_to_dtype( < size_t > kernel_data.return_type)
368
368
cdef dparray result = dparray((x1.size, N), dtype = result_type)
369
369
370
370
cdef ftpr_custom_vander_1in_1out_t func = < ftpr_custom_vander_1in_1out_t > kernel_data.ptr
0 commit comments