sparse matrix option included