ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 24 Oct 2012 20:44:02 +0200What is the difference between dense and sparse matrices?https://ask.sagemath.org/question/9464/what-is-the-difference-between-dense-and-sparse-matrices/And when would I use which?Wed, 24 Oct 2012 16:04:05 +0200https://ask.sagemath.org/question/9464/what-is-the-difference-between-dense-and-sparse-matrices/Answer by Jason Grout for <p>And when would I use which?</p>
https://ask.sagemath.org/question/9464/what-is-the-difference-between-dense-and-sparse-matrices/?answer=14189#post-id-14189Dense matrices store every entry in the matrix. Sparse matrices only store the nonzero entries. Sparse matrices don't have a lot of extra features, and some algorithms may not work for them. You use them when you need to work with matrices that would be too big for the computer to handle them, but they are mostly zero, so they compress easily.Wed, 24 Oct 2012 20:44:02 +0200https://ask.sagemath.org/question/9464/what-is-the-difference-between-dense-and-sparse-matrices/?answer=14189#post-id-14189