packages

linalg::factor

The factorizations, each a type with solve / det / inv where they make sense; build them with the functions at the package root (linalg::lu(a), linalg::svd(a), ...).

Modules

  • cholesky Cholesky (A = L L^H) and the square-root-free LDL^H, both row by row (left-looking: each entry is one inner product of rows already done), reading only the lower triangle.
  • eig General real eigenproblem: Householder reduction to upper Hessenberg form (orthes), then the Francis double-shift QR iteration to real Schur form (hqr2), as in EISPACK and JAMA.
  • eigh Symmetric eigenproblem: Householder reduction to tridiagonal form (tred2), then the implicit QL algorithm with Wilkinson-like shifts (tql2), as in EISPACK and JAMA.
  • lu LU with partial pivoting, blocked right-looking (LAPACK's xGETRF): a panel of NB columns is factored with row pivoting (largest |re| + |im| in the column), then the block row is solved and the trailing matrix updated by one gemm, where most of the flops go.
  • qr Householder QR (LAPACK's xGEQRF / xGEQP3 conventions): step k turns column k below the diagonal into zeros with H_k = I - tau v v^H, v[k] = 1, keeping v below R.
  • svd SVD of a real m x n matrix.