Well, I would call it a square matrix with row vectors. If not completely filled, this is a sparse square matrix with row vectors. 1.
There are two optimizations here. The first is sparse memory allocation, and the second is the reduction in row index reduction . This optimization is probably not that important when the superscalar processor executes the instructions out of order and at an age when compilers usually perform optimization of global threads.
But it allows you to index rows by dereferencing the pointer, rather than multiplying by the size of the row.
1. However, in numerical analysis, a sparse matrix is one that is basically zero, and therefore the sparse data structure formally has the same definition. In this case, it is rather part of the partial data structure, but as far as I know, I do not accept the conditions for these things.
source share