Skip to content

Creating a H5SparseMatrixCSC from a SparseMatrixCSC with zero dimension fails #6

@severinson

Description

@severinson

The following code fails.

B = spzeros(0, 0)
filename = tempname()    
A = H5SparseMatrixCSC(filename, name, B)
@test sparse(A)  B

I think the correct solution would be to allow last(rows) < first(rows) (and the same for cols), similar to how regular matrices work (e.g., sprand(0, 0)[0:-1, :] is valid, and returns a 0 x 0 matrix).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions