Multiple same-size linear solver

Solve multiple systems of linear equations of the same size

You are now following this Submission

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 (2026). Multiple same-size linear solver (https://www.mathworks.com/matlabcentral/fileexchange/24260-multiple-same-size-linear-solver), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Linear Algebra in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.3.0.0

Correct miss-leading MultiProd H1 line

1.2.0.0

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

1.1.0.0

Minor typo correction

1.0.0.0