Rank: 795 based on 133 downloads (last 30 days) and 1 file submitted
photo

Peter

E-mail

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Files Posted by Peter
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Oct 2009 Conjugate Gradient Optimizer This routine lets you optimize large scale linear systems Author: Peter modeling, simulation, optimization, mathematics, image processing, signal processing 133 2
  • 3.0
3.0 | 1 rating
Comments and Ratings by Peter
Updated File Comments Rating
25 Oct 2009 Conjugate Gradient Optimizer This routine lets you optimize large scale linear systems Author: Peter

Well, the only advantage is that the vectors x and y don't necessarily have to be ordered in a row format, they can be multidimensional arrays. The internal function mydot can handle their dot products.

Otherwise you are right, there is no much difference.

The pcg matlab function is also an alternative.

Comments and Ratings on Peter's Files View all
Updated File Comment by Comments Rating
25 Oct 2009 Conjugate Gradient Optimizer This routine lets you optimize large scale linear systems Author: Peter Peter

Well, the only advantage is that the vectors x and y don't necessarily have to be ordered in a row format, they can be multidimensional arrays. The internal function mydot can handle their dot products.

Otherwise you are right, there is no much difference.

The pcg matlab function is also an alternative.

23 Oct 2009 Conjugate Gradient Optimizer This routine lets you optimize large scale linear systems Author: Peter Luong, Bruno

Not sure what advantage of conjgrad over Matlab builtin function LSQR (where preconditioning is possible):

x = lsqr(@afun,b);
    
function y = afun(x,transp_flag)
        if strcmp(transp_flag,'transp')
            y = A'*x;
        else
            y = A*x;
        end
    end

Top Tags Applied by Peter
image processing, mathematics, modeling, optimization, signal processing
Files Tagged by Peter
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Oct 2009 Conjugate Gradient Optimizer This routine lets you optimize large scale linear systems Author: Peter modeling, simulation, optimization, mathematics, image processing, signal processing 133 2
  • 3.0
3.0 | 1 rating
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com