Code covered by the BSD License  

Highlights from
pcg.m with 'null' and 'flex' options

Be the first to rate this file! 7 Downloads (last 30 days) File Size: 5.42 KB File ID: #50
image thumbnail

pcg.m with 'null' and 'flex' options

by Andrew Knyazev

 

14 Jan 2000 (Updated 03 Sep 2011)

Preconditioned Conjugate Gradients handles homogeneous equations and nonsymmetric preconditioning

| Watch this File

File Information
Description

PCG Preconditioned Conjugate Gradients Method is a replacement of the standard built-in PCG code. Two new options are implemented: 'flex' and 'null'. The 'flex' option changes the standard PCG algorithm into the flexible one. It allows using sophisticated preconditioning, not limited to the traditional fixed SPD preconditioners, as required by the standard PCG.

With the 'null' option, the code attempts to compute a nontrivial solution X of the homogeneous system of linear equations A*X=0. Here, the coefficient matrix A must be Hermitian and positive semi-definite. If the null-space of A is more than one dimensional, i.e. A*X=0 allows multiple linear independent solutions, the code still converges to one solution, namely, the projection of the initial guess to the null-space.

Without the new options, the new PCG code works exactly the same way as the latest revision of the built-in PCG.

MATLAB release MATLAB 5.3 (R11)
Other requirements This code requires the same "private" MATLAB functions as the built-in PCG, specifically, iterapp.m, iterchk.m, and itermsg.m, which can be found in the MATLAB tree.
Tags for This File  
Everyone's Tags
conjugate, gradients, iterations, linear algebra, mathematics, matrix, preconditioned, solution
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
03 Sep 2011

Updated to work with the latest MATLAB. Made compatible with the built-in PCG. Implemented the new option 'flex' to turn the standard PCG into flexible, Added new examples in the header.

Contact us