knappmatris
Knappmatris, commonly translated as sparse matrix, is a matrix that contains a relatively small number of nonzero elements compared with its overall size. In practice, a matrix is considered sparse when the majority of its entries are zero, which allows specialized storage and computational techniques to be used.
The defining feature of a knappmatris is its sparsity pattern, which can vary from a few nonzeros
To store knappmatriser efficiently, several sparse formats are commonly used. The most widespread are compressed sparse
Operations on knappmatriser are optimized to skip zeros. A typical example is matrix-vector multiplication, which can
Applications are widespread, including finite element and finite difference discretizations, network and graph analysis, and large-scale
Example: a 5x5 matrix with nonzeros only at positions (1,3)=7, (2,5)=4, (4,1)=1, (5,2)=9 is a knappmatris with