Skip to content

Conversation

@vlad-perevezentsev
Copy link
Contributor

@vlad-perevezentsev vlad-perevezentsev commented Oct 21, 2025

This PR proposes to align all sections in doc/reference with NumPy and CuPy documentation style by using short function names

Additionally, it adds hints with links to the corresponding NumPy API reference pages and fixes math rendering in gcd() and lcm() docstrings

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

@github-actions
Copy link
Contributor

View rendered docs @ https://intelpython.github.io/dpnp/pull/2633/index.html

@github-actions
Copy link
Contributor

Array API standard conformance tests for dpnp=0.20.0dev0=py313h509198e_35 ran successfully.
Passed: 1227
Failed: 0
Skipped: 9

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 67.845%. remained the same
when pulling a68ae95 on short_name_in_docs
into 37db1c5 on master.

Copy link
Contributor

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

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

Please add PR to the Changelog

@@ -1,9 +1,11 @@
.. _routines.array-creation:

.. currentmodule:: dpnp
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to update doc/reference/array_api.rst ?

vander


The Matrix class
Copy link
Contributor

Choose a reason for hiding this comment

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

We can no plans to support the matrxi class. And I guess the CuPy also does not have that.
Can we remove that?

============================================

.. https://numpy.org/doc/stable/reference/routines.fft.html
.. hint:: `NumPy API Reference: Discrete Fourier Transform (numpy.fft) <https://numpy.org/doc/stable/reference/routines.fft.html>`_
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems the hint is missing for doc/reference/exceptions.rst.

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