Skip to content

Test fmin and fmax functions - #419

Open
kennykos wants to merge 1 commit into
mainfrom
kennykos/test-fmin-fmax
Open

Test fmin and fmax functions#419
kennykos wants to merge 1 commit into
mainfrom
kennykos/test-fmin-fmax

Conversation

@kennykos

Copy link
Copy Markdown
Collaborator

No description provided.

@kennykos
kennykos requested review from IvanGrigorik and JBludau May 13, 2026 19:58
Comment thread tests/test_ufuncs.py

@pk.workunit
def fmin_workunit(tid: int, view: pk.View1D[pk.double]) -> None:
nan: pk.double = 1 / 0 - 1 / 0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hmm ... maybe testing against nan is not the best idea since it compares not equal to itself.
How about using the max/min val for double?

@IvanGrigorik IvanGrigorik 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.

Please use FMAX / FMIN to test it

@kennykos

Copy link
Copy Markdown
Collaborator Author

Please use FMAX / FMIN to test it

what do you mean by this?

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