First time here? Check out the FAQ!

Ask Your Question
1

What is the difference between dense and sparse matrices?

asked 12 years ago

SLOtoSF gravatar image

And when would I use which?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 12 years ago

Jason Grout gravatar image

Dense 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.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 12 years ago

Seen: 25,251 times

Last updated: Oct 24 '12