Skip to content

RFC: add exp2 function to the standard #591

Open
@steff456

Description

@steff456
Member

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

Activity

added this to the v2023 milestone on Jun 29, 2023
modified the milestones: v2023, v2024 on Jan 25, 2024
changed the title [-]Add `exp2` function to the standard[/-] [+]RFC: add `exp2` function to the standard[/+] on Apr 4, 2024
added
RFCRequest for comments. Feature requests and proposed changes.
on Apr 4, 2024
modified the milestones: v2024, v2025 on Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    API extensionAdds new functions or objects to the API.RFCRequest for comments. Feature requests and proposed changes.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kgryte@steff456

        Issue actions

          RFC: add `exp2` function to the standard · Issue #591 · data-apis/array-api