Skip to content

Commit 551e61f

Browse files
Style again (#338)
* apply style
1 parent 090ef80 commit 551e61f

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

dpnp/backend/backend_iface.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ INP_DLLEXPORT void custom_prod_c(void* array, void* result, size_t size);
204204
*
205205
* @param [out] result1 The eigenvalues, each repeated according to its multiplicity
206206
*
207-
* @param [out] result2 The normalized (unit length) eigenvectors
207+
* @param [out] result2 The normalized (unit "length") eigenvectors
208208
*
209209
* @param [in] size One dimension of square [size][size] array
210210
*

dpnp/dpnp_iface_mathematical.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,10 @@ def floor(x1, **kwargs):
340340
--------
341341
:obj:`dpnp.ceil` : Compute the ceiling of the input, element-wise.
342342
:obj:`dpnp.trunc` : Return the truncated value of the input, element-wise.
343-
343+
344344
Notes
345345
-----
346-
Some spreadsheet programs calculate the floor-towards-zero, in other words floor(-2.5) == -2.
346+
Some spreadsheet programs calculate the "floor-towards-zero", in other words floor(-2.5) == -2.
347347
dpNP instead uses the definition of floor where floor(-2.5) == -3.
348348
349349
Examples

dpnp/dpnp_iface_trigonometric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ def expm1(x1):
593593

594594
def hypot(x1, x2, out=None):
595595
"""
596-
Given the legs of a right triangle, return its hypotenuse.
596+
Given the "legs" of a right triangle, return its hypotenuse.
597597
598598
For full documentation refer to :obj:`numpy.hypot`.
599599

dpnp/linalg/linalg.pyx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,23 @@ __all__ = [
5151

5252

5353
# 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)
5555

5656

5757
# 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 * )
5959

6060

6161
# 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)
6363

6464

6565
cpdef dparray dpnp_cholesky(dparray input):
6666
cdef DPNPFuncType param1_type = dpnp_dtype_to_DPNPFuncType(input.dtype)
6767

6868
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_CHOLESKY, param1_type, param1_type)
6969

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)
7171
cdef dparray result = dparray(input.size, dtype=result_type)
7272

7373
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):
9292

9393
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_DET, param1_type, param1_type)
9494

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)
9696
cdef dparray result = dparray(size_out, dtype=result_type)
9797

9898
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):
114114
cdef DPNPFuncType param1_type = dpnp_dtype_to_DPNPFuncType(x1.dtype)
115115
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_EIG, param1_type, param1_type)
116116

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)
118118

119119
cdef dparray res_val = dparray((size,), dtype=result_type)
120120
cdef dparray res_vec = dparray(x1_shape, dtype=result_type)
@@ -134,7 +134,7 @@ cpdef dparray dpnp_eigvals(dparray input):
134134
cdef DPNPFuncType param1_type = dpnp_dtype_to_DPNPFuncType(input.dtype)
135135
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_EIGVALS, param1_type, param1_type)
136136

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)
138138

139139
cdef dparray res_val = dparray((size,), dtype=result_type)
140140

@@ -150,7 +150,7 @@ cpdef dparray dpnp_matrix_rank(dparray input):
150150

151151
cdef DPNPFuncData kernel_data = get_dpnp_function_ptr(DPNP_FN_MATRIX_RANK, param1_type, param1_type)
152152

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)
154154
cdef dparray result = dparray((1,), dtype=result_type)
155155

156156
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):
179179

180180
ndim = input.ndim
181181
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)):
185185

186186
input = input.ravel(order='K')
187187
sqnorm = dpnp.dot(input, input)

0 commit comments

Comments
 (0)