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 6vignette("rmumps"): symmetric matrices, orderings,
MUMPS parameters, errors, and calling MUMPS from C or C++.?Rmumps: every method.tools/README.md in the source repository (not in
the CRAN package): how the bundled sources are generated from the
upstream tarballs, and how to import a new MUMPS release.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).