Sparse matrices
Sparse matrices come up frequently in real-world datasets. Whether or not someone has viewed a video in a movie catalog, listened to the number of songs on a playlist, or completed an item in their to-do list are all good examples of times it's possible to use a sparse matrix. Many of the values within these tables are zero, so it doesn't make sense to store these matrices as dense matrices. This would take up a lot of room in memory and would be expensive to manipulate.
We can use the Go sparse library in order to create and manipulate sparse matrices. The Sparse library uses idioms from BLAS routines in order to perform a lot of common matrix manipulation. The Go Sparse library is fully compatible with the Gonum matrix package, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access