Support mm matrices and convert internal format to CSR.