-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
sparseSparse arraysSparse arrays
Description
Is there any practical way to achieve this? Consider: I have a very large matrix describing edge weights between all pairs of vertices. This is an NxN matrix and is impractical for graphs with orders of 1e7 without using sparse matrices.
If I want the default edge weight of 1.0, I have to code specially around this to make a sparse matrix entry of "0" really be "1" (which is ok in this specific case because an edge weight of 0 is not defined). It would be much easier if I could specify "create this sparse matrix but any unspecified value should be X".
Is there already an easy way to do this that I've missed?
Metadata
Metadata
Assignees
Labels
sparseSparse arraysSparse arrays