RFC: add `proj` for computing the projection of a complex number
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by reviewing the Array API specification and the linked C99 cproj prior art. Resolve whether proj should operate only on complex arrays, then define its behavior and signature clearly enough for the specification to accept the proposal.
Written by the indexing model from the issue text.
Description
This RFC requests to include a new API in the array API specification for the purpose of computing the projection of a complex number on the Riemann sphere.
Overview
The Array API specification currently leaves the model for complex number infinities unspecified, which can be especially problematic when testing for complex number equality. Adding support for proj can help resolve ambiguity by mapping all complex number infinities to a single infinity (i.e., positive real infinity).
Prior art
- C99: https://en.cppreference.com/w/c/numeric/complex/cproj
- (not currently implemented by array libraries)
Proposal:
def proj(x: array, /) -> array
Questions
- Only operate on complex arrays, similar to
conjet al?
cc @kgryte
- Dominant language
- Python
- Stars
- 281
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from data-apis/array-api
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Maintenance
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in data-apis/array-api
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100