Closed buutrg closed 1 month ago
I solved it, it seems there were some problem when converting different data format to dgCMatrix/IterableMatrix that preserved 0 entries
Hi @buutrg, glad you were able to figure out your issue! I'll also mention that if you have 16 cores, you could consider the calculating row means rather than row sums using the matrix_stats()
function which has easy support for multi-threading. (There's also the internal BPCells::parallel_split()
function that matrix_stats()
uses internally, though that's a bit more error-prone to use)
Hi authors,
I am trying to run rowSums but it seems it runs slower in a smaller matrix:
Larger matrix:
Smaller matrix:
I am using the same resource: 16 cores, 32GB RAM, same chip processor Can you suggest what could be going wrong here? Your help is really appreciated!
Best, Buu
Update: I just realize that when converting to dgCMatrix in the small matrix, 0 entries are still kept as 0 while in the large matrix, it is as "."