Code covered by the BSD License  

Highlights from
Efficient Conjugate Gradient Method for Symmetric Banded Matrix

Be the first to rate this file! 8 Downloads (last 30 days) File Size: 2.03 KB File ID: #31153

Efficient Conjugate Gradient Method for Symmetric Banded Matrix

by

 

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

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
16 Nov 2013 Aniruddha Chavan

Error in the program

Contact us