RFC: add exp2
function to the standard
#591
Labels
API extension
Adds new functions or objects to the API.
RFC
Request for comments. Feature requests and proposed changes.
Milestone
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
, andpow
, but does not include the IEEE 754 functionexp2
. Would be nice to add for completeness.array-api/src/array_api_stubs/_2022_12/elementwise_functions.py
Line 1455 in 3d91878
While this can currently be achieved now by using
pow
,exp2
is commonly implemented as a slightly more ergonomic perf path.Prior art
Proposal:
cc @kgryte
The text was updated successfully, but these errors were encountered: