Multiple same-size linear solver

Solve multiple systems of linear equations of the same size
Updated 26 May 2010

View License

Sometime we need to solve a bunch of small linear (least-square) systems of the same size. This function can accomplish this task conveniently.

The system matrix and RHS are passed as 3D arrays.

Furthermore, calling syntax can support two simplifications:
- same RHS for all systems; or
- single RHS for each system.

Followed an idea from Tim Davis (using sparse)

Cite As

Bruno Luong (2024). Multiple same-size linear solver (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Linear Algebra in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Correct miss-leading MultiProd H1 line

- A wrapper to call with arrays that loop on the third dimension
- Multi matrix-products

Minor typo correction