sanic: Solving Ax = b Nimbly in C++

Direct and iterative methods for solving linear systems and computing eigenvalue and singular value decompositions using the Eigen C++ library in R. Supports dense and sparse linear systems with Cholesky, LU, QR, conjugate gradient, stabilized biconjugate gradient, and least-squares conjugate gradient methods. Provides reusable factorizations for repeated solves.

Version: 0.1.0
Depends: R (≥ 3.3.0)
Imports: Rcpp (≥ 1.0.5), Matrix, methods
LinkingTo: Rcpp, RcppEigen
Suggests: knitr, rmarkdown, microbenchmark, tinytest
Published: 2026-10-25
DOI: 10.32614/CRAN.package.sanic
Author: Nikolas Kuschnig ORCID iD [aut, cre], Lukas Vashold ORCID iD [ctb], Dirk Eddelbuettel ORCID iD [ctb], Yixuan Qiu [ctb]
Maintainer: Nikolas Kuschnig <nikolas.kuschnig at wu.ac.at>
BugReports: https://github.com/nk027/sanic/issues
License: GPL-3 | file LICENSE
URL: https://github.com/nk027/sanic
NeedsCompilation: yes
Citation: sanic citation info
Materials: README, NEWS
In views: NumericalMathematics
CRAN checks: sanic results

Documentation:

Reference manual: sanic.html , sanic.pdf
Vignettes: A Visual Guide to Solvers (source, R code)

Downloads:

Package source: sanic_0.1.0.tar.gz
Windows binaries: r-devel: sanic_0.0.2.zip, r-release: sanic_0.0.2.zip, r-oldrel: sanic_0.1.0.zip
macOS binaries: r-release (arm64): sanic_0.1.0.tgz, r-oldrel (arm64): sanic_0.1.0.tgz, r-release (x86_64): sanic_0.1.0.tgz, r-oldrel (x86_64): sanic_0.1.0.tgz
Old sources: sanic archive

Reverse dependencies:

Reverse imports: LeaveOutKSS, simplifyNet

Linking:

Please use the canonical form https://CRAN.R-project.org/package=sanic to link to this page.