Efficient Conjugate Gradient Method for Symmetric Banded Matrix

Given symmetric banded matrix A,this code efficiently uses conjugate gradient method to solve Ax=b.

You are now following this Submission

This code uses conjugate gradient method to solve the linear system
Ax= b, where A is symmetric and banded. A is first stored in a
compactstorage mode, using the function "compactstorage", and then
conjugate gradient method is applied to the compactly stored matrix.
Input: A, initial guess x, vector b, tolerance called epsilon and
maximum number of iteration called MaxIter.
Output: computed solution x and number of iteration called Iteration.

Cite As

Michael Akinwumi (2026). Efficient Conjugate Gradient Method for Symmetric Banded Matrix (https://www.mathworks.com/matlabcentral/fileexchange/31153-efficient-conjugate-gradient-method-for-symmetric-banded-matrix), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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