Package: matsketch 0.1.0

Muhammad Farooqi

matsketch: Randomized Matrix Computations from Few Entries and Products

Implements recent randomized algorithms that answer questions about a large positive-semidefinite matrix while touching only a small part of it. Randomly pivoted Cholesky builds a low-rank approximation from a few rows of a kernel matrix (Chen, Epperly, Tropp and Webber (2025) <doi:10.1002/cpa.22234>), with an accelerated variant based on rejection sampling (Epperly, Tropp and Webber (2025) <doi:10.1137/24m1699048>). The XTrace, XNysTrace and XDiag estimators recover the trace and diagonal of a matrix that is available only through matrix-vector products (Epperly, Tropp and Webber (2024) <doi:10.1137/23m1548323>), alongside the Hutch++ estimator of Meyer, Musco, Musco and Woodruff (2021) <doi:10.1137/1.9781611976496.16>. Randomized Nystrom preconditioning speeds up the conjugate gradient method for regularized linear systems (Frangella, Tropp and Udell (2023) <doi:10.1137/21m1466244>). These pieces are combined to fit restricted maximum likelihood variance-component models on genomic relationship matrices without forming or factorizing the covariance matrix.

Authors:Muhammad Farooqi [aut, cre]

matsketch_0.1.0.tar.gz
matsketch_0.1.0.zip(r-4.7-any)matsketch_0.1.0.zip(r-4.6-any)
matsketch_0.1.0.tar.gz(r-4.7-any)matsketch_0.1.0.tar.gz(r-4.6-any)
matsketch_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
matsketch/json (API)

# Install 'matsketch' in R:
install.packages('matsketch', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mqfarooqi1/matsketch/issues

Pkgdown/docs site:https://mqfarooqi1.github.io

On CRAN:

Conda:

3.00 score 12 exports 0 dependencies

Last updated from:330ad41b69. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK121
source / vignettesOK216
linux-releaseOK116
windows-develOK92
windows-releaseOK77
wasm-releaseOK97

Exports:diag_esteffective_dimgrm_matrixkernel_matrixnystromnystrom_precondpcgreml_exactreml_sketchrpcholsim_genomictrace_est

Dependencies:

Genomic REML without forming the covariance matrix
What an iteration needs | A worked example | Accuracy over many data sets | Scaling | Choosing the settings | Limitations | References

Last update: 2026-09-21
Started: 2026-09-21

Randomized matrix computations with matsketch
Approximating a kernel matrix from a few of its columns | Estimating a trace from matrix-vector products | Solving regularized linear systems | Variance components on a genomic relationship matrix | References

Last update: 2026-09-21
Started: 2026-09-21