Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC: Added missing C-API functions #19844

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

Merged
merged 2 commits into from
Sep 16, 2021
Merged

Conversation

Mukulikaa
Copy link
Contributor

Added the following functions to NumPy C-API:

  1. PyArray_CopyObject
  2. PyArray_MapIterArray
  3. PyArray_MapIterSwapAxes
  4. PyArray_MapIterNext
  5. PyArray_MapIterArrayCopyIfOverlap

1. PyArray_CopyObject
2. PyArray_MapIterArray
3. PyArray_MapIterSwapAxes
4. PyArray_MapIterNext
5. PyArray_MapIterArrayCopyIfOverlap
@melissawm
Copy link
Member

Rendered artifact here

Copy link
Member

@melissawm melissawm left a comment

Choose a reason for hiding this comment

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

I can't review the technical details, so I'll leave that for others to look at. The only question I have is if the core/include/numpy/multiarray_api.txt file also needs to be updated to include the "docstring" for PyArray_CopyObject- I'm not sure what is the function of that file.

@@ -584,25 +584,26 @@ From other objects
did not have the _ARRAY_ macro namespace in them. That form
of the constant names is deprecated in 1.7.

.. c:macro:: NPY_ARRAY_NOTSWAPPED
.. c:macro:: NPY_ARRAY_NOTSWAPPED
Copy link
Member

Choose a reason for hiding this comment

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

These are un-indented on purpose so that the macros can be linked to from elsewhere

@mattip
Copy link
Member

mattip commented Sep 8, 2021

This seems like a good opportunity to use the new doxygen-breathe infrastructure to pull the comments out of the source files and render them in the rst files

@Mukulikaa
Copy link
Contributor Author

I'd be happy to try it out then!

@rgommers
Copy link
Member

This seems like a good opportunity to use the new doxygen-breathe infrastructure to pull the comments out of the source files and render them in the rst files

I'd suggest merging this once content seems ready, and using Doxygen-Breathe in a follow-up PR to not mix content and tooling changes.

@rossbar
Copy link
Contributor

rossbar commented Sep 12, 2021

using Doxygen-Breathe in a follow-up PR to not mix content and tooling changes.

FWIW the tooling changes have already been merged, so the proposal is to use this as a test-case for the C autodocumentation workflow. @Mukulikaa has expressed interest (or at least willingness) to give this a try and provide feedback on how the process goes. @rgommers brings up a good point though - if you get stuck don't feel the need to keep pushing on the autodocumenting "experiment", that shouldn't be a blocker for the content itself.

Co-authored-by: Melissa Weber Mendonça <[email protected]>
@charris charris merged commit 5d75d48 into numpy:main Sep 16, 2021
@charris
Copy link
Member

charris commented Sep 16, 2021

Let's get this in. Thanks @Mukulikaa .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants