Skip to content

[Question] How to conver to numpy and from numpy #39

Open

Description

@DawnMagnet

It seems there is no interop module in this repo.

but it appears in https://arrayfire.org/arrayfire-python/arrayfire.interop.html

Activity

  1. villekf commented on Feb 23, 2026

    @villekf

    I don't think there's a direct way to do this, but you can obtain a Python list from an array and then convert that to NumPy array:

    B = np.asarray(A.to_list())

    EDIT: You can do the same the other way around as well: convert the NumPy array to list and then create an array.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions