function [out, Elist]=pclm(W,Nit)
Input:
- W:
matrix containing initial guess for eigensolutions
- Nit: Number of iterations desired
Output:
- out: Result of Nit iterations of preconditioned line minimization
- Elist: Nit
1 column vector containing result of getE() after each iteration
- DISPLAY: result of each getE(), ``linmin test'' (angle cosine between
previous search direction and current gradient)
Implement the preconditioned line minimization algorithm discussed in lecture,
- Initialize
- Evaluate gradient:
- If not first iteration, do ``linmin test'': check
for
being the previous search direction
- Set search direction:
- Evaluate gradient at trial step:
- Compute estimate of best step:
-
- Repeat (2-7)
with a function of the above prototype in the file ``pclm.m''.
Hint: You should have to change only a single line of ``lm.m''
to generate ``pclm.m''
Subsections
Tomas Arias
2007-04-26