Skip to content

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

Open
@steff456

Description

@steff456

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    API extensionAdds new functions or objects to the API.Needs DiscussionNeeds further discussion.RFCRequest for comments. Feature requests and proposed changes.topic: Complex Data TypesComplex number data types.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions