Skip to content

Replace @overload_glue by @overload for np.linspace and np.take - #8431

Merged
sklam merged 3 commits into
numba:mainfrom
guilhermeleobas:refactor_np_linspace_take
Sep 13, 2022
Merged

sklam merged 3 commits into
numba:mainfrom
guilhermeleobas:refactor_np_linspace_take

Conversation

@guilhermeleobas

@guilhermeleobas guilhermeleobas commented Sep 9, 2022 •

Copy link
Copy Markdown
Contributor

ref: #8254

Change np.take and np.linspace to use @overload

@guilhermeleobas guilhermeleobas self-assigned this Sep 9, 2022
@guilhermeleobas guilhermeleobas changed the title Replace overload_glue by @overload for np.linspace and np.take Replace @overload_glue by @overload for np.linspace and np.take Sep 9, 2022

@stuartarchibald stuartarchibald left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for doing this refactoring @guilhermeleobas, couple of minor things to resolve else looks good.

Comment thread numba/np/arrayobj.py Outdated
Comment thread numba/np/arrayobj.py Outdated
Comment thread numba/np/arrayobj.py
dtype = types.float64
dtype = as_dtype(dtype)

# Implementation based on https://github.com/numpy/numpy/blob/v1.20.0/numpy/core/function_base.py#L24 # noqa: E501

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This reference should be maintained?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done!

@stuartarchibald stuartarchibald added 4 - Waiting on author Waiting for author to respond to review Effort - medium Medium size effort needed and removed 3 - Ready for Review labels Sep 12, 2022
@stuartarchibald stuartarchibald added this to the Numba 0.57 RC milestone Sep 12, 2022
@stuartarchibald stuartarchibald self-assigned this Sep 12, 2022
@guilhermeleobas guilhermeleobas added 4 - Waiting on reviewer Waiting for reviewer to respond to author and removed 4 - Waiting on author Waiting for author to respond to review labels Sep 12, 2022

@stuartarchibald stuartarchibald left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the patch!

@stuartarchibald stuartarchibald added 5 - Ready to merge Review and testing done, is ready to merge and removed 4 - Waiting on reviewer Waiting for reviewer to respond to author labels Sep 13, 2022
@sklam
sklam merged commit c87e22e into numba:main Sep 13, 2022
@guilhermeleobas
guilhermeleobas deleted the refactor_np_linspace_take branch September 27, 2022 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 - Ready to merge Review and testing done, is ready to merge Effort - medium Medium size effort needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants