Package: lazymatrix 0.1.0.9000

lazymatrix: Perform Complex Matrix Operations Symbolically on Sparse Matrices

Provides a framework for lazy computation on large sparse matrices. Enables lazy evaluation of normalized data matrices, preserving sparsity throughout operations without materializing dense intermediate objects. Implements statistical algorithms including LSQR for sparse least squares as described in Paige and Saunders (1982) <doi:10.1145/355984.355989> and partial singular value decomposition via the augmented implicitly restarted Lanczos bidiagonalization algorithm of Baglama and Reichel (2005) <doi:10.1137/04060593X>.

Authors:Viktor Segersall [aut, cre, cph]

lazymatrix_0.1.0.9000.tar.gz
lazymatrix_0.1.0.9000.zip(r-4.7)lazymatrix_0.1.0.9000.zip(r-4.6)lazymatrix_0.1.0.9000.zip(r-4.5)
lazymatrix_0.1.0.9000.tgz(r-4.6-x86_64)lazymatrix_0.1.0.9000.tgz(r-4.6-arm64)lazymatrix_0.1.0.9000.tgz(r-4.5-x86_64)lazymatrix_0.1.0.9000.tgz(r-4.5-arm64)
lazymatrix_0.1.0.9000.tar.gz(r-4.7-arm64)lazymatrix_0.1.0.9000.tar.gz(r-4.7-x86_64)lazymatrix_0.1.0.9000.tar.gz(r-4.6-arm64)lazymatrix_0.1.0.9000.tar.gz(r-4.6-x86_64)
lazymatrix_0.1.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
lazymatrix/json (API)

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

Bug tracker:https://github.com/vsegersall/lazymatrix/issues

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

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library

On CRAN:

Conda:

openblascppopenmp

5.44 score 1 stars 13 scripts 11 exports 5 dependencies

Last updated from:9da30515f0. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK163
linux-devel-x86_64OK166
source / vignettesOK331
linux-release-arm64OK202
linux-release-x86_64OK172
macos-release-arm64OK127
macos-release-x86_64OK381
macos-oldrel-arm64OK128
macos-oldrel-x86_64OK205
windows-develOK133
windows-releaseOK199
windows-oldrelOK136
wasm-releaseOK144

Exports:colnamesCompareLazyMatrixlsqrncolnormnrowprcompsetNamessvdt

Dependencies:irlbalatticeMatrixRcppRcppArmadillo

performance
Performance of lazymatrix | Helper Functions | Results of Computation Time Benchmark | Results of Memory Benchmark

Last update: 2026-06-25
Started: 2026-04-27

Getting started with LazyMatrix
Why LazyMatrix? | Mathematical Background | Usage | Design

Last update: 2026-04-10
Started: 2026-04-10

Use Cases for LazyMatrix: Statistical Algorithms
Linear Regression with LSQR | Introduction | Notation | Mathematical Background | Implementation | Gradient Descent | Discussion | Principal Component Analysis | Partial Singular Value Decomposition with irlba | Principal Component Analysis with Partial SVD | Conclusion | References

Last update: 2026-04-10
Started: 2026-04-10

Readme and manuals

Help Manual

Help pageTopics
Vector Subtraction between regular vector and 'LazyColumn'-,ANY,LazyColumn-method
Vector subtraction between a 'LazyColumn' vector and a regular R vector.-,LazyColumn,ANY-method
Vector Subtraction between two 'LazyColumn' vectors.-,LazyColumn,LazyColumn-method
Multiply element-wise two LazyColumn vectors*,LazyColumn,LazyColumn-method
Multiply a LazyColumn by a numeric scalar or vector*,LazyColumn,numeric-method
Multiply a numeric scalar or vector by a LazyColumn*,numeric,LazyColumn-method
Matrix multiplication for vector and 'LazyMatrix'%*%,ANY,LazyMatrix-method
Perform the dot product between two LazyColumn vectors%*%,LazyColumn,LazyColumn-method
Perform the dot product between a LazyColumn and a numeric vector%*%,LazyColumn,numeric-method
Matrix multiplication for 'LazyMatrix' and vector%*%,LazyMatrix,ANY-method
Matrix multiplication for 'LazyMatrix' and matrix-object.%*%,LazyMatrix,matrix-method
Perform the dot product between a numeric vectorand a LazyColumn%*%,numeric,LazyColumn-method
Vector Addition between regular vector and 'LazyColumn'+,ANY,LazyColumn-method
Vector Addition between 'LazyColumn' and regular vector+,LazyColumn,ANY-method
Vector Addition between two 'LazyColumn' vectors.+,LazyColumn,LazyColumn-method
Retrieve or set the row or column names of a LazyMatrix object.colnames,LazyMatrix-method
Comparison operators for LazyColumnCompare,LazyColumn,numeric-method
Comparison operators for LazyColumnCompare,numeric,LazyColumn-method
Crossproduct for 'LazyMatrix'crossprod,LazyMatrix,ANY-method crossprod,\code{LazyMatrix}-method
Returns the dimension of a LazyMarix Object.dim,LazyMatrix-method
Fast crossprod for LazyMatrix (dense case)lazy_crossprod_vec
Fast crossprod for LazyMatrix (sparse case)lazy_crossprod_vec_sp
LazyColumn S4 classLazyColumn-class
Constructs a LazyMatrix object.LazyMatrix
LazyMatrix S4 classLazyMatrix-class
Get the length of a LazyColumnlength,LazyColumn-method
Performs least squares estimation on LazyMatrix object using the iterative lsqr algorithm.lsqr lsqr,LazyMatrix-method
Returns the number of columns of the data matrixncol,LazyMatrix-method
Compute the norm of a LazyMatrix or LazyColumnnorm
Perform the norm of a LazyColumn vectornorm,LazyColumn-method
Computes the Frobenius norm of a 'LazyMatrix' object.norm,LazyMatrix-method
Returns the number of rows of the data matrixnrow,LazyMatrix-method
Performs a principal component analysis on the LazyMatrix object using irlba:s sparse svd.prcomp,LazyMatrix-method
Set names for a LazyColumnsetNames,LazyColumn,character-method
Subset a LazyColumnsubset-LazyColumn [,LazyColumn,ANY,ANY,ANY-method
Subset a LazyMatrix by columnssubset-LazyMatrix [,LazyMatrix,ANY,ANY,ANY-method
Singular Value decomposition for 'LazyMatrix'.svd,LazyMatrix-method
Given a 'LazyMatrix' x, t returns the transpose of x.t,LazyMatrix-method