How do I get a scipy.csr sparse-matrix as a normal dense matrix without toDense()?
问题 I have a problem with sparse matrixes in scipy. I want to use them as a normal matrix but not with todense() function. I m new in this field, I dont know how I can get the same result when I want to multiply the sparse matrix, but without beeing a sparse matrix... I think sparse matrix only used for faster computation, so it should be possible to do this without a sparse matrix: sparse_matrix * 5 == sparase_matrix.todense() * 5 == no_sparse_matrix* 5 data = np.ones(5178) indices = [34,12,545