Working sparse matrix version of LDA types