Skip to content

Conversation

@nlegendree
Copy link

Description

This Pull Request addresses issue #29258, which requested reorganizing the "Writing custom array containers" guide to reduce duplication with the interoperability documentation.

The changes include:

  • Migrated the __array__() example: The DiagonalArray example has been moved from basics.dispatch.rst to arrays.classes.rst, where it now documents the class.__array__() method in the reference guide.

  • Reduced basics.dispatch.rst to a navigation stub: The file has been reduced as a stub.

  • Updated cross-reference: Modified basics.interoperability.rst to reference the new example location instead of the old basics.dispatch page.

Files Modified

  • doc/source/reference/arrays.classes.rst - Added DiagonalArray example
  • doc/source/user/basics.dispatch.rst - Reduced to navigation stub
  • doc/source/user/basics.interoperability.rst - Updated cross-reference

Related Issues

Closes #29258

Migrate the __array__() DiagonalArray example from basics.dispatch.rst to arrays.classes.rst where it documents the class.__array__ interface.

Reduce basics.dispatch.rst, removing redundant content already covered in basics.interoperability.rst while preserving unique testing utilities documentation.

Update cross-reference in basics.interoperability.rst to point to the new example location.

See numpy#29258
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.

DOC: Rework the 'Writing custom array containers' guide

1 participant