Skip to content

Reading sparse matrix of unknown type #44

Description

@ExpHP

The sparse module was designed a bit hastily and it is only after trying to use it in another project that I noticed the following discrepancy:

NpyFile allows an NPY file to be attempted to be parsed using multiple dtypes, yet the sparse types demand knowing the type upfront.

Adding more functionality to the sparse types seems unwise. (I'd hate for those docs to become even more inscrutible). I wish there was a nice in-between solution, where the user could use NpzWriter directly, but had access to functions that somehow made it easier to correctly read a sparse matrix (automatically reading the correct filenames with the correct dtypes for indices). I'm not sure what that would look like.

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions