Skip to content

Fix meshgrid return type#2854

Draft
antonwolfy wants to merge 5 commits intomasterfrom
fix-meshgrid-return-type
Draft

Fix meshgrid return type#2854
antonwolfy wants to merge 5 commits intomasterfrom
fix-meshgrid-return-type

Conversation

@antonwolfy
Copy link
Copy Markdown
Contributor

@antonwolfy antonwolfy commented Apr 15, 2026

This PR fixes dpnp.meshgrid to always return tuple instead of list.

Changes dpnp.meshgrid() to consistently return a tuple to match NumPy's behavior (version 2.5+) and align with the newer version 2025.12 of Python array API spec.

  • 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?

@antonwolfy antonwolfy added this to the 0.20.0 release milestone Apr 15, 2026
@antonwolfy antonwolfy self-assigned this Apr 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 23, 2026

Array API standard conformance tests for dpnp=0.21.0dev0=py313h509198e_6 ran successfully.
Passed: 1355
Failed: 5
Skipped: 16

@coveralls
Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 78.429% (-0.003%) from 78.432% — fix-meshgrid-return-type into master

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.

2 participants