First of all, thank you very much for this great package! I've found it by looking for alternate solutions to MASS:ginv for the Moore-Penrose generalized inverse. I have rather large spare matrices, and I wondered, as rfunctions already depends on Matrix, if it's possible to extend the package to be able to make geninv compatible with sparse matrices?
A quick example of such matrix:
library(Matrix)
n <- 1e5
m <- sparseMatrix(1:n, 1:n, x = 1)
m <- do.call(rBind, lapply(1:10, function(i) {
set.seed(i)
m[-sample(1:n, n/3), ]
}))
m <- t(m) %*% m
First of all, thank you very much for this great package! I've found it by looking for alternate solutions to
MASS:ginvfor the Moore-Penrose generalized inverse. I have rather large spare matrices, and I wondered, asrfunctionsalready depends onMatrix, if it's possible to extend the package to be able to makegeninvcompatible with sparse matrices?A quick example of such matrix: