Skip to content

Add complex number support to full and full_like - #435

Merged
kgryte merged 4 commits into
mainfrom
cmplx-full
Jun 11, 2022
Merged

Add complex number support to full and full_like#435
kgryte merged 4 commits into
mainfrom
cmplx-full

Conversation

@kgryte

@kgrytekgryte commented May 23, 2022

Copy link
Copy Markdown
Contributor

This PR

  • adds complex number support to full and full_like. For full, when the fill value is a complex number and dtype is None, the output array data type must be the default complex floating-point data type.
  • fixes missing type annotations for bool fill values.

@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
@kgryte
kgryte requested a review from honnoJune 6, 2022 18:53
@kgryte
kgryte requested review from honno and removed request for honnoJune 6, 2022 20:18
Comment threadspec/API_specification/array_api/creation_functions.py
@kgryte
kgryte removed the request for review from honnoJune 11, 2022 08:06
@kgryte

Copy link
Copy Markdown
ContributorAuthor

As this PR has been approved and open for approx 3 weeks, will merge. Typings concerns raised during review will be addressed in a separate issue/discussion. Any further updates can be addressed in a subsequent PR...

@kgryte
kgryte merged commit 6a35bc1 into mainJun 11, 2022
@kgryte
kgryte deleted the cmplx-full branch June 11, 2022 08:08
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.

3 participants

@kgryte@jakirkham@leofang