Linear algebra

Solve systems with backslash, then factor matrices and find eigenvalues and singular values with lu, qr, chol, eig, svd and the other matrix functions you already know.

  • Your existing .m scripts run as written, A\b included
  • lu, qr, chol, eig and svd run on NVIDIA, AMD, Intel and Apple GPUs
  • Mismatched sizes in a product or solve are caught before the script runs
  • Free to try; run in your browser, on your desktop or from the command line
Download RunMat

Explore the RunMat runtime

A vibration mode of a rectangular plate, from the eigenvectors of its Laplacian, drawn by RunMat in 3-D from the saved analysis study
A vibration mode of a rectangular plate, from eigs on its sparse Laplacian, drawn by RunMat. Drag to rotate it.

Why use RunMat for linear algebra

No toolbox to run on the GPU

Moving a factorization to the GPU usually means paying for a parallel computing toolbox. RunMat runs lu, qr, chol, eig and svd on NVIDIA, AMD, Intel and Apple GPUs from the same script, and the runtime is free for individuals, education, research and smaller companies.

GPU

Solve larger models in the same time

Dense solves and thousands of small matrix products are often the slowest part of a model. Large arrays stay on the GPU between statements and pagemtimes runs batched products in one call, so far larger systems fit in the same run time with no GPU code to write.

GPU

Catch a size mismatch before the run

A dimension mismatch deep in a script fails the run after the slow setup has finished. Mismatched sizes in products and solves are flagged in the editor and by runmat check, with the sizes found, before anything runs.

How RunMat runs your code

Reopen the matrices behind a result

When a result looks wrong a week later, the matrices that produced it are usually gone. Each run keeps its figures, variables and code, so they can be opened and checked.

Desktop app

Examples

Singular values of a 12 by 12 Vandermonde matrix on a log scale, rendered by RunMat

Solve a system you can check

inv(A)*b against A\b on a Vandermonde matrix.

The first three mode shapes of a chain of six masses, rendered by RunMat

Vibration modes

Natural frequencies of a spring-mass chain from eig.

A noisy matrix beside its rank-5 approximation from the SVD, rendered by RunMat

Low-rank approximation

Keep five singular values of a noisy matrix.

Noisy samples of cos(4t) and a degree-9 least-squares fit, rendered by RunMat

Least squares three ways

Normal equations, QR and pinv on one fit.

Two thousand correlated random points drawn with a Cholesky factor, rendered by RunMat

Correlated samples

Random vectors from a covariance matrix with chol.

The five smallest eigenvalues from eigs beside the exact values, rendered by RunMat

Eigenvalues of a sparse operator

The smallest modes of a 1-D Laplacian with eigs.

Try it on your own data

Download RunMat
Read the docs