File Exchange

image thumbnail

Efficient Conjugate Gradient Method for Symmetric Banded Matrix

version 1.0 (2.03 KB) by

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



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.

Comments and Ratings (1)

Error in the program

MATLAB Release
MATLAB 7.11 (R2010b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video