Forum: open-discussion


More support for row-oriented matrices [ Reply ] By: Ott Toomet on 2020-05-16 17:55 | [forum:49230] |
I am wondering if it is possible to better support row-oriented matrices. I am calculating products in a form `S[i,] %*% D`, where S is a sparse matrix and D is a dense matrix. My understanding (albeit imperfect) is that extracting rows from a column-oriented matrices is slow. I also do not want to transpose my problem as that would not align well with the literature and my usual way of thinking about the problem. I checked the code, it seems it would not be that hard to either add an option to `sparseMatrix` to request row-oriented matrices, or alternatively to create another constructor for RsparseMatrix. Thereafter I run into issues with row-wise subsetting of ngRMatrix... What do you think, would these methods be worthwhile to add? With some guidance I may be able to do it myself. Best, Ott |