Modelling with sparse and dense matrices
