alexeckert / parallelDist

R Package: Parallel Distance Matrix Computation using Multiple Threads
GNU General Public License v2.0
49 stars 9 forks source link

Any planned support for sparse matrices? #3

Open mohamed-badawy-sp opened 6 years ago

mohamed-badawy-sp commented 6 years ago

Currently, in my experience, the input 'x' has to be a dense matrix. It would be great if you can provide support for sparse matrices, specially ones from the 'Matrix' package. Here's what I currently get from R 3.5.0, and parallelDist 0.2.1.

require(parallelDist) require(Matrix) x = sample(0:1, 10000, replace = T) m = Matrix(x, ncol = 100, sparse = T) d = parallelDist(m, method = "binary") Error in parallelDist(m, method = "binary") : x must be a matrix or a list of matrices.

alexeckert commented 6 years ago

Hi @mobadawy-sp,

thanks for your suggestion, it's a good idea to also support sparse matrices. Will have a look at it when I have some time.

zhanghao-njmu commented 3 years ago

Hope to see the feature soon.