Skip to content

Conversation

@vlad-perevezentsev
Copy link
Contributor

This PR rewrites dpnp.fix to reuse dpnp.trunc internally removing the backend implementation of dpnp.fix and aligning the documentation with NumPy

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

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

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

assert_array_equal(result, expected)

@pytest.mark.parametrize("xp", [numpy, dpnp])
def test_out_wrong_tuple_len(self, xp, func):
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the point to move the test from TestUfunc scope to TestRoundingFuncs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

dpnp.fix no longer exposes .nin and .nout so I removed it from TestUfunc and added test_out_wrong_tuple_len to TestRoundingFuncs to keep the coverage and extend this case for rounding functions

@github-actions
Copy link
Contributor

Array API standard conformance tests for dpnp=0.20.0dev1=py313h509198e_48 ran successfully.
Passed: 1229
Failed: 0
Skipped: 7

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 81.304% (-0.03%) from 81.336%
when pulling 07d2866 on use_tranc_in_fix_func
into 290ab65 on 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.

3 participants