Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hellerve
Copy link
Contributor

As discussed in #30098, this PR is a break-out PR to rewrite np.fix to use np.trunc internally. @seberg I hope I understood your comment in #30098 (comment) correctly.

This PR should have no observable effects except maybe a speed-up of np.fix.

Cheers

@seberg
Copy link
Member

seberg commented Nov 11, 2025

Yeah, exactly, thanks! I suspect you'll need this one small typing fixup also to make CI pass.

@seberg seberg changed the title DEP: rewrite np.fix to use np.trunc internally ENH,MAINT: rewrite np.fix to use np.trunc internally Nov 11, 2025
@seberg seberg added this to the 2.4.0 release milestone Nov 11, 2025
@seberg seberg merged commit c86f042 into numpy:main Nov 11, 2025
77 checks passed
@seberg
Copy link
Member

seberg commented Nov 11, 2025

Thanks @hellerve, this fixes the regression and hopefully nobody actually notices the change :).

@hellerve hellerve deleted the fix-to-trunc branch November 11, 2025 13:02
cakedev0 pushed a commit to cakedev0/numpy that referenced this pull request Dec 5, 2025
* DEP: rewrite np.fix to use np.trunc internally

* TST: add trunc to object for ufunclike tests
IndifferentArea pushed a commit to IndifferentArea/numpy that referenced this pull request Dec 7, 2025
* DEP: rewrite np.fix to use np.trunc internally

* TST: add trunc to object for ufunclike tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants