Efficient Conjugate Gradient Method for Symmetric Banded Matrix

Given symmetric banded matrix A,this code efficiently uses conjugate gradient method to solve Ax=b.
307 Downloads
Updated 22 Apr 2011

View License

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 (2024). 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 .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Time Series 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
1.0.0.0