For Programmers: Free Programming Magazines  


Home > Archive > Matlab > May 2005 > PCG code in MATLAB









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PCG code in MATLAB
Jerry O'Neal

2005-05-28, 3:59 pm

Hi! I am a PhD student, and I am testing a new iterative solver
against the standard conjugate gradient (CG) algorithm. Does anyone
know the specific preconditioned CG (PCG) code MATLAB uses? What
kinds of "tricks" does it use to speed convergence? (I have written
a separate code to do CG, but my implementation of CG takes many more
iterations than MATLAB's PCG code, even without preconditioners.)
Thanks for your help!
Steven Lord

2005-05-31, 4:05 pm


"Jerry O'Neal" <joneal@isye.gatech.edu> wrote in message
news:ef0762f.-1@webx.raydaftYaTP...
> Hi! I am a PhD student, and I am testing a new iterative solver
> against the standard conjugate gradient (CG) algorithm. Does anyone
> know the specific preconditioned CG (PCG) code MATLAB uses? What
> kinds of "tricks" does it use to speed convergence? (I have written
> a separate code to do CG, but my implementation of CG takes many more
> iterations than MATLAB's PCG code, even without preconditioners.)
> Thanks for your help!


In the MATLAB Command Window, type either "doc pcg" (without the quotes) for
a reference to a book from SIAM or "edit pcg" for the code used by the PCG
function.

--
Steve Lord
slord@mathworks.com


Jerry O'Neal

2005-05-31, 4:05 pm

Steve,

Thank you for the info. I will take a good look at the code and
compare it to mine. Appreciate your help!

Jerry

Steven Lord wrote:
>
>
>
> "Jerry O'Neal" <joneal@isye.gatech.edu> wrote in message
> news:ef0762f.-1@webx.raydaftYaTP...
> anyone
What[color=darkred]
> written
many[color=darkred]
> more
preconditioners.)[color=darkred]
>
> In the MATLAB Command Window, type either "doc pcg" (without the
> quotes) for
> a reference to a book from SIAM or "edit pcg" for the code used by
> the PCG
> function.
>
> --
> Steve Lord
> slord@mathworks.com
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com