Skip to content

Allow uint32 dtype for coords #249

Open
@brendancol

Description

@brendancol

Hey awesome library! I'm really having a blast with it.

One question / comment:

For my purposes, I need the COO array with the largest dtype for coords of uint32.

When I create an array, the COO constructor seems to convert all coord arrays to intp or int64 in my case.
https://github.com/pydata/sparse/blob/master/sparse/coo/core.py#L234

Any thoughts on skipping that astype if coords is already an array?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIndicates new feature requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions