Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify expected behavior when providing a complex number array to all and any #442

Merged
merged 1 commit into from
Jun 6, 2022

Conversation

kgryte
Copy link
Contributor

@kgryte kgryte commented May 23, 2022

This PR

  • clarifies expected behavior when providing a complex number array to all and any. Namely, complex number values having a non-zero component (real or imaginary) must evaluate to True.

@kgryte kgryte added API change Changes to existing functions or objects in the API. topic: Complex Data Types Complex number data types. labels May 23, 2022
@kgryte kgryte added this to the v2022 milestone May 23, 2022
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

LGTM

@asmeurer
Copy link
Member

asmeurer commented May 23, 2022

Do any and all already support numeric data types? I would have expected them to only support boolean data types.

@kgryte
Copy link
Contributor Author

kgryte commented May 23, 2022

@asmeurer Yes, they already support all supported data types; see

This PR adds clarification, similar to floating-point infinities and NaN, for how complex numbers should evaluate to True.

@kgryte
Copy link
Contributor Author

kgryte commented Jun 6, 2022

As this PR has received approval and the changes are straightforward, will go ahead and merge. Any further changes can be addressed in subsequent PRs...

@kgryte kgryte merged commit 7ee81a5 into main Jun 6, 2022
@kgryte kgryte deleted the cmplx-utility-fcns branch June 6, 2022 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API change Changes to existing functions or objects in the API. topic: Complex Data Types Complex number data types.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants