rmumps

An R interface to MUMPS, a direct solver for sparse linear systems. rmumps bundles MUMPS 5.9.2, built sequential and in double precision, with the orderings AMD, AMF, QAMD, PORD and METIS. It solves A x = b, symmetric or not, with one or many right-hand sides, and keeps the factorization for later solves. Other packages can call the bundled MUMPS from their own C or C++ code.

install.packages("rmumps")
library(Matrix)
library(rmumps)
a <- sparseMatrix(i = c(1, 2, 3, 1), j = c(1, 2, 3, 3), x = c(4, 5, 6, 1))
am <- Rmumps$new(a)
solve(am, c(7, 10, 18))   # factorizes and solves: 1 2 3
solve(am, c(14, 20, 36))  # reuses the factorization: 2 4 6

rmumps was written by Serguei Sokol and is maintained by Balasubramanian Narasimhan. License: GPL (>= 2); the bundled libraries keep their own licenses (see inst/COPYRIGHTS).