Date: 2022-11-02 18:27 Sender: Mikael JaganI'm a bit confused. Didn't Martin add an argument 'sparseY' in Matrix 1.5-0, with default TRUE for backwards compatibility?
> KhatriRao(sm, t(mm), sparseY = FALSE)
4 x 6 sparse Matrix of class "dgCMatrix"
[1,] 1 1 1 . . .
[2,] 0 1 0 . . .
[3,] . . . 1 1 1
[4,] . . . 2 3 4
But perhaps we also need a 'sparseX' argument?
We must deal with kronecker() simultaneously, i.e., kronecker() methods involving denseMatrix or traditional matrices should also get an argument, say 'drop0', specifying how zeros in the dense factor(s) are treated. |