Open sqjin opened 4 years ago
Great idea. I will check it to see if RcppArmadillo support this. It depends on this. I will leave this open to inform you.
@ManosPapadakis95 Here is a post showing that the use of sparse matrix in RcppArmadillo is faster than the dense matrix: https://gallery.rcpp.org/articles/armadillo-sparse-matrix-performance/ . Thanks!
The link is broken...I think. Anyway, sparse is not faster than dense. That can not happen. Although, I am trying to find a way to make it faster but without success. Patience and I will find another way. Also check package "slam". It is another package which uses sparse matrices with less memory in under specific sircumstances.
@ManosPapadakis95 Thank so much!
Thanks for sharing this great package. For the matrix multiplication, it looks like Rfast does not support the sparse inputs, e.g., as(x, "dgCMatrix"). When I tried the sparse inputs, there is an error: Error in mat.mult(x, y) : Not compatible with requested type: [type=S4; target=double].
Sparse matrix is important in dealing with large data. In particular for the matrix multiplication of two sparse matrices, there should have some ways to do it more faster. Is it possible to support the sparse inputs?
Thanks so much!
Best, Suoqin