|
|
|
|
Madagascar Programming Reference Manual |
|
|
void sf_cdstep(bool forget /* restart flag */,
int nx /* model size */,
int ny /* data size */,
float* x /* current model [nx] */,
const float* g /* gradient [nx] */,
float* rr /* data residual [ny] */,
const float* gg /* conjugate gradient [ny] */)
/*< Step of conjugate-direction iteration.
The data residual is rr = A x - dat
>*/
{
...
}