I am wondering if a sparse matrix is stored in memory as a list which is its ArrayRules? The reason to ask this is I am trying to write a function to produce a large sparse matrix. However, I am not sure which way saves memory and is faster, return the rule to produce the sparse matrix or the sparse matrix itself?



Browse other questions tagged or ask your own question.