Skip to content

Clarify expected values in ones and ones_like when dtype is a complex number data type - #438

Merged
kgryte merged 1 commit into
mainfrom
cmplx-ones
Jun 6, 2022
Merged

Clarify expected values in ones and ones_like when dtype is a complex number data type#438
kgryte merged 1 commit into
mainfrom
cmplx-ones

Conversation

@kgryte

@kgrytekgryte commented May 23, 2022

Copy link
Copy Markdown
Contributor

This PR

  • adds a note to both ones and ones_like concerning expected output values when dtype is either complex64 or complex128. Namely, only real components are ones. Imaginary components are zero for all elements.

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

@rgommersrgommers left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@kgryte

Copy link
Copy Markdown
ContributorAuthor

As this PR has received approval and the changes are straightforward, will go ahead and merge...

@kgryte
kgryte merged commit 9a0960a into mainJun 6, 2022
@kgryte
kgryte deleted the cmplx-ones branch June 6, 2022 19:00
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API changeChanges to existing functions or objects in the API.topic: Complex Data TypesComplex number data types.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@kgryte@rgommers