No BSD License  

Highlights from
cpcg.m

5.0

5.0 | 2 ratings Rate this file 1 Download (last 30 days) File Size: 3.71 KB File ID: #44

cpcg.m

by Leevan Ling

 

08 Aug 2000

CPCG -CIRCULANT PRECONDITIONED CONJUGATE GRADIENT METHOD.

| Watch this File

File Information
Description

CPCG -CIRCULANT PRECONDITIONED CONJUGATE GRADIENT METHOD.

[x, error, iter, flag] = cpcg(a, b, tol, max_it, c, x0)
[x, error, iter, flag] = cpcg(a, b, c)
[x, error, iter, flag] = cpcg(a, b)
 
tol, max_it, c, x0 can be replaced by [] and default vaules will be used.
 
cpcg.m solves the symmetric positive definite Toeplitz linear system Ax=b using the Conjugate Gradient method with a circulant preconditioner C.
 
Both matrices A and C have to be SYMMETRIC POSITIVE DEFINITE.
 
input:
a ------ REAL FIRST COLUMN of symmetric positive definite matrix
b ------ REAL right hand side vecto
tol ---- REAL error tolerance
max_it - INTEGER maximum number of iteration
c ------ REAL FIRST COLUMN of CIRCULANT preconditioner matrix
x0 ----- REAL initial guess vector
 
output:
x ------ REAL solution vector
error -- REAL error norm
iter --- INTEGER number of iterations performed
flag --- INTEGER: 0 = solution found to tolerance
                    1 = no convergence given max_it

Tested under MATLAB 5.1 and 5.3.

MATLAB release MATLAB 5.3 (R11)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
29 Nov 2007 jing jin

good

30 Nov 2007 jin jing  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
linear algebra Leevan Ling 22 Oct 2008 06:30:56
circulant Leevan Ling 22 Oct 2008 06:30:56
conjugate Leevan Ling 22 Oct 2008 06:30:57
preconditioned Leevan Ling 22 Oct 2008 06:30:57
gradient Leevan Ling 22 Oct 2008 06:30:57
toeplitz Leevan Ling 22 Oct 2008 06:30:57

Contact us at files@mathworks.com