Dear all,
Reading the code of CG solver (conjugategradient.m), I found the code below;
            Pnewgrad = newgrad;
            newgradPnewgrad = inner_product(newgrad, Pnewgrad);  
From seeing the entire code, I cannot understand that why "Pnewgrad" is needed.
It would be appreciated to tell me the purpose of this "Pnewgrad"  variable.
Regards,
Hiro