sparsedense
Sparsedense is a hybrid data representation for matrices and tensors that combines sparse and dense storage within a unified structure. It targets data with a mixed density pattern, where some subregions are dense while others are largely empty. The core idea is to partition a matrix into blocks and store each block using the most appropriate format for its density.
Formally, a sparsedense matrix A is partitioned into blocks Aij. For each block, a density measure d(Aij)
Operations on sparsedense matrices are performed blockwise. For matrix-vector products, dense blocks use standard dense multiplication,
Advantages include improved memory efficiency and potential performance gains from matching storage to data access patterns.