Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions dpnp/dpnp_algo/dpnp_algo.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ __all__ = [
"dpnp_init_val",
"dpnp_matmul",
"dpnp_queue_initialize",
"dpnp_queue_is_cpu",
"dpnp_remainder"
"dpnp_queue_is_cpu"
]


Expand Down
19 changes: 10 additions & 9 deletions dpnp/dpnp_algo/dpnp_algo_mathematical.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ __all__ += [
"dpnp_negative",
"dpnp_power",
"dpnp_prod",
"dpnp_remainder",
"dpnp_sign",
"dpnp_subtract",
"dpnp_sum",
Expand Down Expand Up @@ -101,7 +102,7 @@ cpdef dparray dpnp_absolute(dparray input):


cpdef dparray dpnp_add(object x1_obj, object x2_obj, object dtype=None, dparray out=None, object where=True):
return call_fptr_2in_1out(DPNP_FN_ADD, x1_obj, x2_obj, dtype=dtype, out=out, where=where)
return call_fptr_2in_1out_new(DPNP_FN_ADD, x1_obj, x2_obj, dtype=dtype, out=out, where=where)


cpdef dparray dpnp_arctan2(object x1_obj, object x2_obj, object dtype=None, dparray out=None, object where=True):
Expand Down Expand Up @@ -134,7 +135,7 @@ cpdef dparray dpnp_conjugate(dparray x1):


cpdef dparray dpnp_copysign(object x1_obj, object x2_obj, object dtype=None, dparray out=None, object where=True):
return call_fptr_2in_1out(DPNP_FN_COPYSIGN, x1_obj, x2_obj, dtype=dtype, out=out, where=where)
return call_fptr_2in_1out_new(DPNP_FN_COPYSIGN, x1_obj, x2_obj, dtype=dtype, out=out, where=where)


cpdef dparray dpnp_cross(object x1_obj, object x2_obj, object dtype=None, dparray out=None, object where=True):
Expand Down Expand Up @@ -193,7 +194,7 @@ cpdef dparray dpnp_diff(dparray input, int n):


cpdef dparray dpnp_divide(object x1_obj, object x2_obj, object dtype=None, dparray out=None, object where=True):
return call_fptr_2in_1out(DPNP_FN_DIVIDE, x1_obj, x2_obj, dtype=dtype, out=out, where=where)
return call_fptr_2in_1out_new(DPNP_FN_DIVIDE, x1_obj, x2_obj, dtype=dtype, out=out, where=where)


cpdef dparray dpnp_ediff1d(dparray x1):
Expand All @@ -213,11 +214,11 @@ cpdef dparray dpnp_floor(dparray x1):


cpdef dparray dpnp_floor_divide(object x1_obj, object x2_obj, object dtype=None, dparray out=None, object where=True):
return call_fptr_2in_1out(DPNP_FN_FLOOR_DIVIDE, x1_obj, x2_obj, dtype=dtype, out=out, where=where)
return call_fptr_2in_1out_new(DPNP_FN_FLOOR_DIVIDE, x1_obj, x2_obj, dtype=dtype, out=out, where=where)


cpdef dparray dpnp_fmod(object x1_obj, object x2_obj, object dtype=None, dparray out=None, object where=True):
return call_fptr_2in_1out(DPNP_FN_FMOD, x1_obj, x2_obj, dtype=dtype, out=out, where=where)
return call_fptr_2in_1out_new(DPNP_FN_FMOD, x1_obj, x2_obj, dtype=dtype, out=out, where=where)


cpdef dparray dpnp_gradient(dparray y1, int dx=1):
Expand Down Expand Up @@ -246,11 +247,11 @@ cpdef dparray dpnp_hypot(object x1_obj, object x2_obj, object dtype=None, dparra


cpdef dparray dpnp_maximum(object x1_obj, object x2_obj, object dtype=None, dparray out=None, object where=True):
return call_fptr_2in_1out(DPNP_FN_MAXIMUM, x1_obj, x2_obj, dtype=dtype, out=out, where=where)
return call_fptr_2in_1out_new(DPNP_FN_MAXIMUM, x1_obj, x2_obj, dtype=dtype, out=out, where=where)


cpdef dparray dpnp_minimum(object x1_obj, object x2_obj, object dtype=None, dparray out=None, object where=True):
return call_fptr_2in_1out(DPNP_FN_MINIMUM, x1_obj, x2_obj, dtype=dtype, out=out, where=where)
return call_fptr_2in_1out_new(DPNP_FN_MINIMUM, x1_obj, x2_obj, dtype=dtype, out=out, where=where)


cpdef tuple dpnp_modf(utils.dpnp_descriptor x1):
Expand Down Expand Up @@ -334,7 +335,7 @@ cpdef dparray dpnp_negative(dparray array1):


cpdef dparray dpnp_power(object x1_obj, object x2_obj, object dtype=None, dparray out=None, object where=True):
return call_fptr_2in_1out(DPNP_FN_POWER, x1_obj, x2_obj, dtype=dtype, out=out, where=where)
return call_fptr_2in_1out_new(DPNP_FN_POWER, x1_obj, x2_obj, dtype=dtype, out=out, where=where)


cpdef dparray dpnp_prod(dparray input, object axis=None, object dtype=None, dparray out=None, cpp_bool keepdims=False, object initial=None, object where=True):
Expand Down Expand Up @@ -370,7 +371,7 @@ cpdef dparray dpnp_prod(dparray input, object axis=None, object dtype=None, dpar


cpdef dparray dpnp_remainder(object x1_obj, object x2_obj, object dtype=None, dparray out=None, object where=True):
return call_fptr_2in_1out(DPNP_FN_REMAINDER, x1_obj, x2_obj, dtype=dtype, out=out, where=where)
return call_fptr_2in_1out_new(DPNP_FN_REMAINDER, x1_obj, x2_obj, dtype=dtype, out=out, where=where)


cpdef dparray dpnp_sign(dparray x1):
Expand Down
Loading