Skip to content

diff raises an exception for negative values of n - #1780

Merged
ndgrigorian merged 1 commit into
masterfrom
diff-error-negative-n
Aug 2, 2024
Merged

ndgrigorian merged 1 commit into
masterfrom
diff-error-negative-n

Conversation

@ndgrigorian

Copy link
Copy Markdown
Collaborator

diff now raises an exception for negative n as is expected, rather than just defaulting to n=1 case

Closes #1779

  • 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?
  • If this PR is a work in progress, are you opening the PR as a draft?

`diff` now raises an exception for negative `n` as expected

@antonwolfy antonwolfy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you @ndgrigorian

@github-actions

github-actions Bot commented Aug 2, 2024 •

Copy link
Copy Markdown

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

@github-actions

github-actions Bot commented Aug 2, 2024

Copy link
Copy Markdown

Array API standard conformance tests for dpctl=0.18.0dev0=py310ha798474_231 ran successfully.
Passed: 894
Failed: 1
Skipped: 119

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 87.739% (+0.003%) from 87.736%
when pulling fc3b4f3 on diff-error-negative-n
into 1ecd8a8 on master.

@ndgrigorian
ndgrigorian merged commit 2d964d9 into master Aug 2, 2024
@ndgrigorian
ndgrigorian deleted the diff-error-negative-n branch August 2, 2024 15:47
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.

dpt.diff does not raise a validation exception for n < 0

3 participants