Skip to content

Find a worked example

Choose the example whose inputs and result match your problem. Each linked guide uses executable mdoc blocks against the public API; this page does not duplicate their setup.

I have… I need… Follow…
a small square dense matrix one or many direct solutions Dense systems and least squares
a tall design matrix regression coefficients and rank evidence Dense systems and least squares
repeated response matrices one retained QR and reusable scratch Dense systems and least squares
row multipliers from an outer algorithm factor and solve diag(scales) * A without materializing it Dense systems and least squares
coordinate triples a canonical CSR matrix and matrix-vector product Sparse matrices and operator solves
only an A * x procedure an iterative solve without dense storage Sparse matrices and operator solves
a symmetric dense matrix eigenvalues and residual diagnostics Spectral analysis
a rectangular dense matrix economy SVD factors Spectral analysis
symmetric operators A and SPD B a few generalized eigenpairs Matrix-free generalized symmetric eigensolving
a composite differentiable/proximal objective a typed first-order method and certificate First-order composite optimization
two fitted linear predictions a certified squared-residual comparison Compare two linear fits
Breeze values at an old boundary explicit copy/view conversion and a migration plan Moving a Breeze workload to Gale

For storage reuse after profiling, continue with Dense destinations, Reusable workspaces, or Sparse patterns and plans. For copy, view, builder, and borrowed-lifetime rules, read Ownership.

The browser PCA demo under demo/ is a runnable integration example rather than the first tutorial. Build it with sbt demoBuild, then open demo/index.html; no hosted demo is currently claimed.