-
Notifications
You must be signed in to change notification settings - Fork 23
Support array-scalar operations for 10 more funcs #648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
{ \ | ||
const _DataType input_elem1 = (size1 == 1) ? array1[0] : array1[i]; \ | ||
const _DataType input_elem2 = (size2 == 1) ? array2[0] : array2[i]; \ | ||
const _DataType input_elem1 = (input1_size == 1) ? input1[0] : input1[i]; \ | ||
const _DataType input_elem2 = (input2_size == 1) ? input2[0] : input2[i]; \ | ||
result[i] = __operation__; \ | ||
} \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need this extra braces here.
ctypedef void(*fptr_1in_1out_t)(void *, void *, size_t) | ||
ctypedef void(*fptr_2in_1out_t)(void *, void *, void *, size_t) | ||
# to be fused with fptr_2in_1out_t | ||
ctypedef void(*fptr_2in_1out_new_t)(void *, const void *, const size_t, const long *, const size_t, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I understand correctly that this func point name fptr_2in_1out_new_t
is temporary?
And in the future, you will delete the current fptr_2in_1out_t
and rename fptr_2in_1out_new_t
to fptr_2in_1out_t
?
If not it is better rename fptr_2in_1out_new_t
.
new
word may confuse.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. fptr_2in_1out_new_t
will be renamed to fptr_2in_1out_t
in further.
cdef dparray call_fptr_2in_1out(DPNPFuncName fptr_name, dparray x1, dparray x2, dparray_shape_type result_shape, new_version=False): | ||
cdef dparray call_fptr_2in_1out(DPNPFuncName fptr_name, object x1_obj, object x2_obj, | ||
object dtype=None, dparray out=None, object where=True, | ||
bint new_version=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to add a comment here in case this param will be removed in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dpnp/dpnp/dpnp_algo/dpnp_algo.pyx
Line 381 in bd42068
# parameter 'new_version' must be removed in shortly |
No description provided.