Skip to content

Add implementation of dpnp.lib.stride_tricks.as_strided#2991

Draft
antonwolfy wants to merge 6 commits into
masterfrom
impl-lib.as_strided
Draft

Add implementation of dpnp.lib.stride_tricks.as_strided#2991
antonwolfy wants to merge 6 commits into
masterfrom
impl-lib.as_strided

Conversation

@antonwolfy

@antonwolfy antonwolfy commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

This PR adds a new dpnp.lib namespace and implements dpnp.lib.stride_tricks.as_strided.
The function creates a view into an array with a caller-specified shape and strides, sharing the base array's memory.

It closes #2969.

  • 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.21.0 release milestone Jul 3, 2026
@antonwolfy antonwolfy self-assigned this Jul 3, 2026
@antonwolfy antonwolfy force-pushed the impl-lib.as_strided branch from 3b47991 to 4b62bf8 Compare July 3, 2026 12:27
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

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

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 78.127% (+0.02%) from 78.107% — impl-lib.as_strided into master

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Array API standard conformance tests for dpnp=0.21.0dev2=py313h509198e_18 ran successfully.
Passed: 1372
Failed: 3
Skipped: 5

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.

dpnp.lib.stride_tricks.as_strided mentioned in documentation but not implemented

2 participants