Cannot create sparse matrix from size_t indexes #9437
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
scipy.sparse
Milestone
If I try to create a sparse matrix in COOrdinate format with row and column indexes in
size_t
type,coo_matrix
will throw an error as it seems it tries to castsize_t
tofloat64
.The following code illustrates the problem:
Throws:
Adding the shape will however allow to construct this matrix:
The problem is not present when the indexes are of
int
orlong
type:The text was updated successfully, but these errors were encountered: