array-api icon indicating copy to clipboard operation
array-api copied to clipboard

RFC: add `proj` for computing the projection of a complex number

Open steff456 opened this issue 2 years ago • 0 comments

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

Proposal:

def proj(x: array, /) -> array

Questions

  • Only operate on complex arrays, similar to conj et al?

cc @kgryte

steff456 avatar Feb 14 '23 22:02 steff456