Linear Algebra
1 Overview
Linear algebra operations that run in memory (RAM).
2 Functions
2.1 bdQR
Computes the QR decomposition (also called QR factorization) of a matrix A into a product A = QR where Q is an orthogonal matrix and R is an upper triangular matrix. This function operates on in-memory matrices.
2.2 bdSolve
Solves the linear system AX = B where A is an N-by-N matrix and X and B are N-by-NRHS matrices. The function automatically detects if A is symmetric and uses the appropriate solver.
2.3 bdpseudoinv
Computes the Moore-Penrose pseudoinverse of a matrix using SVD decomposition. This implementation handles both square and rectangular matrices, and provides numerically stable results even for singular or near-singular matrices.
2.4 bdCorr_matrix
Compute Pearson or Spearman correlation matrix for matrices that fit in memory. This function automatically detects whether to compute:
2.5 bdCrossprod
Computes matrix cross-products efficiently using block-based algorithms and optional parallel processing. Supports both single-matrix (X’X) and two-matrix (X’Y) cross-products.
2.6 bdScalarwproduct
Multiplies a numeric matrix by a scalar weight , returning . The input must be a base R numeric matrix (or convertible to one).
2.7 bdtCrossprod
Computes matrix transposed cross-products efficiently using block-based algorithms and optional parallel processing. Supports both single-matrix (XX’) and two-matrix (XY’) transposed cross-products.
2.8 bd_wproduct
Compute weighted operations using a diagonal weight from : Inputs may be base numeric matrices .