Package: matsketch 0.1.0

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:
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
Last updated from:330ad41b69. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 121 | ||
| source / vignettes | OK | 216 | ||
| linux-release | OK | 116 | ||
| windows-devel | OK | 92 | ||
| windows-release | OK | 77 | ||
| wasm-release | OK | 97 |
Exports:diag_esteffective_dimgrm_matrixkernel_matrixnystromnystrom_precondpcgreml_exactreml_sketchrpcholsim_genomictrace_est
Dependencies:
Last update: 2026-09-21
Started: 2026-09-21
Last update: 2026-09-21
Started: 2026-09-21
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Stochastic diagonal estimation | diag_est |
| Effective dimension and recommended preconditioner rank | effective_dim |
| Lazy genomic relationship matrix | grm_matrix |
| Lazy kernel matrix | kernel_matrix |
| Randomized Nystrom approximation | nystrom |
| Nystrom preconditioner | nystrom_precond |
| Preconditioned conjugate gradients | pcg |
| Plot the convergence of a conjugate gradient solve | plot.pcg_result |
| Plot the path of a REML fit | plot.reml_sketch |
| Plot the error of a randomly pivoted Cholesky approximation | plot.rpchol |
| Variance components by exact dense REML | reml_exact |
| Variance components by sketched REML | reml_sketch |
| Randomly pivoted Cholesky | rpchol |
| Simulate a genomic data set | sim_genomic |
| Stochastic trace estimation | trace_est |