holotomocupy.proc¶
Functions:
remove_outliers linear dai_yuan
- holotomocupy.proc.dai_yuan(d, grad, grad0)[source]¶
Dai-Yuan direction for the CG scheme
- Parameters
d (ndarray) – The Dai-Yuan direction from the previous iteration
grad (ndarray) – Gradient on the current iteration
grad0 (ndarray) – Gradient on the previous iteration
- Returns
res (ndarray) – New Dai-Yuan direction