Skip to content

Grabbing nonzero indices #145

@ahwillia

Description

@ahwillia

Is the preferred way to access the coordinates/indices to use something like

i, j, k = arr.coords  # for a 3d array

Is there a reason why coo arrays don't implement nonzero as a method? I think this would make np.argwhere(arr) work as well without converting to a dense array.

Huge thanks for developing this package -- it will be very useful to me.

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