parallelDist icon indicating copy to clipboard operation
parallelDist copied to clipboard

Any planned support for sparse matrices?

Open mohamed-badawy-sp opened this issue 7 years ago • 2 comments
trafficstars

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.

mohamed-badawy-sp avatar Aug 15 '18 05:08 mohamed-badawy-sp

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.

alexeckert avatar Aug 18 '18 11:08 alexeckert

Hope to see the feature soon.

zhanghao-njmu avatar Oct 11 '21 11:10 zhanghao-njmu