the.com/sparse matrix

a grid that's almost entirely empty, and proud of it.

means a matrix where most entries are zero, so you store only the nonzero ones and save massive amounts of memory and compute.

from emerged from 1960s numerical computing, when engineers solving huge systems of equations realized storing every zero in a million-by-million matrix was insane, so formats like coordinate lists and compressed rows were born to skip them.

for instance

google pagerank matrixbillions of pages, each linking to only a handful

recommender systemsnetflix matrix of users times movies, mostly unrated

finite element solversengineering simulations with millions of near-empty equations

scipy sparse modulecsr_matrix and csc_matrix used across scientific python

the.com/
what’s happening now · the.com · generated