Skip to content

Conversation

densmirn
Copy link
Contributor

No description provided.

@densmirn densmirn requested a review from shssf March 12, 2021 11:31
Comment on lines 105 to 109
{ \
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__; \
} \

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,

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.

Copy link
Contributor Author

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

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# parameter 'new_version' must be removed in shortly

@shssf shssf merged commit 63625f6 into IntelPython:master Mar 17, 2021
@densmirn densmirn deleted the feature/simple_broadcast branch September 20, 2021 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants