@@ -51,23 +51,23 @@ __all__ = [
51
51
52
52
53
53
# C function pointer to the C library template functions
54
- ctypedef void (* custom_linalg_1in_1out_func_ptr_t)(void * , void * , size_t * , size_t)
54
+ ctypedef void (* custom_linalg_1in_1out_func_ptr_t)(void * , void * , size_t * , size_t)
55
55
56
56
57
57
# C function pointer to the C library template functions
58
- ctypedef void (* custom_linalg_1in_1out_func_ptr_t_)(void * , void * , size_t * )
58
+ ctypedef void (* custom_linalg_1in_1out_func_ptr_t_)(void * , void * , size_t * )
59
59
60
60
61
61
# C function pointer to the C library template functions
62
- ctypedef void (* custom_linalg_1in_1out_with_size_func_ptr_t_)(void * , void * , size_t)
62
+ ctypedef void (* custom_linalg_1in_1out_with_size_func_ptr_t_)(void * , void * , size_t)
63
63
64
64
65
65
cpdef dparray dpnp_cholesky(dparray input ):
66
66
cdef DPNPFuncType param1_type = dpnp_dtype_to_DPNPFuncType(input .dtype)
67
67
68
68
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_CHOLESKY, param1_type, param1_type)
69
69
70
- result_type = dpnp_DPNPFuncType_to_dtype( < size_t > kernel_data.return_type)
70
+ result_type = dpnp_DPNPFuncType_to_dtype(< size_t > kernel_data.return_type)
71
71
cdef dparray result = dparray(input .size, dtype = result_type)
72
72
73
73
cdef custom_linalg_1in_1out_func_ptr_t_ func = < custom_linalg_1in_1out_func_ptr_t_ > kernel_data.ptr
@@ -92,7 +92,7 @@ cpdef dparray dpnp_det(dparray input):
92
92
93
93
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_DET, param1_type, param1_type)
94
94
95
- result_type = dpnp_DPNPFuncType_to_dtype( < size_t > kernel_data.return_type)
95
+ result_type = dpnp_DPNPFuncType_to_dtype(< size_t > kernel_data.return_type)
96
96
cdef dparray result = dparray(size_out, dtype = result_type)
97
97
98
98
cdef custom_linalg_1in_1out_func_ptr_t func = < custom_linalg_1in_1out_func_ptr_t > kernel_data.ptr
@@ -114,7 +114,7 @@ cpdef tuple dpnp_eig(dparray x1):
114
114
cdef DPNPFuncType param1_type = dpnp_dtype_to_DPNPFuncType(x1.dtype)
115
115
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_EIG, param1_type, param1_type)
116
116
117
- result_type = dpnp_DPNPFuncType_to_dtype( < size_t > kernel_data.return_type)
117
+ result_type = dpnp_DPNPFuncType_to_dtype(< size_t > kernel_data.return_type)
118
118
119
119
cdef dparray res_val = dparray((size,), dtype = result_type)
120
120
cdef dparray res_vec = dparray(x1_shape, dtype = result_type)
@@ -134,7 +134,7 @@ cpdef dparray dpnp_eigvals(dparray input):
134
134
cdef DPNPFuncType param1_type = dpnp_dtype_to_DPNPFuncType(input .dtype)
135
135
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_EIGVALS, param1_type, param1_type)
136
136
137
- result_type = dpnp_DPNPFuncType_to_dtype( < size_t > kernel_data.return_type)
137
+ result_type = dpnp_DPNPFuncType_to_dtype(< size_t > kernel_data.return_type)
138
138
139
139
cdef dparray res_val = dparray((size,), dtype = result_type)
140
140
@@ -150,7 +150,7 @@ cpdef dparray dpnp_matrix_rank(dparray input):
150
150
151
151
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_MATRIX_RANK, param1_type, param1_type)
152
152
153
- result_type = dpnp_DPNPFuncType_to_dtype( < size_t > kernel_data.return_type)
153
+ result_type = dpnp_DPNPFuncType_to_dtype(< size_t > kernel_data.return_type)
154
154
cdef dparray result = dparray((1 ,), dtype = result_type)
155
155
156
156
cdef custom_linalg_1in_1out_func_ptr_t func = < custom_linalg_1in_1out_func_ptr_t > kernel_data.ptr
@@ -179,9 +179,9 @@ cpdef dparray dpnp_norm(dparray input, ord=None, axis=None):
179
179
180
180
ndim = input .ndim
181
181
if axis is None :
182
- if ((ord is None ) or
183
- (ord in (' f' , ' fro' ) and ndim == 2 ) or
184
- (ord == 2 and ndim == 1 )):
182
+ if ((ord is None ) or
183
+ (ord in (' f' , ' fro' ) and ndim == 2 ) or
184
+ (ord == 2 and ndim == 1 )):
185
185
186
186
input = input .ravel(order = ' K' )
187
187
sqnorm = dpnp.dot(input , input )
0 commit comments