Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: add exp2 function to the standard #591

Open
steff456 opened this issue Feb 14, 2023 · 0 comments
Open

RFC: add exp2 function to the standard #591

steff456 opened this issue Feb 14, 2023 · 0 comments
Labels
API extension Adds new functions or objects to the API. RFC Request for comments. Feature requests and proposed changes.
Milestone

Comments

@steff456
Copy link
Member

steff456 commented Feb 14, 2023

This RFC requests to include a new API in the array API specification for the purpose of computing the base-2 exponential.

Overview

Based on array comparison data, the API is available in the majority of libraries in the PyData ecosystem.

The Array API specification currently includes log2, exp, and pow, but does not include the IEEE 754 function exp2. Would be nice to add for completeness.

While this can currently be achieved now by using pow, exp2 is commonly implemented as a slightly more ergonomic perf path.

Prior art

Proposal:

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

cc @kgryte

@steff456 steff456 added the API extension Adds new functions or objects to the API. label Feb 14, 2023
@kgryte kgryte added this to the v2023 milestone Jun 29, 2023
@kgryte kgryte modified the milestones: v2023, v2024 Jan 25, 2024
@kgryte kgryte changed the title Add exp2 function to the standard RFC: add exp2 function to the standard Apr 4, 2024
@kgryte kgryte added the RFC Request for comments. Feature requests and proposed changes. label Apr 4, 2024
@kgryte kgryte modified the milestones: v2024, v2025 Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API extension Adds new functions or objects to the API. RFC Request for comments. Feature requests and proposed changes.
Projects
None yet
Development

No branches or pull requests

2 participants