AdvancedPhotonSource / tike

Repository for ptychography software
http://tike.readthedocs.io
Other
29 stars 15 forks source link

Fix some implementation differences in lstsq_grad method #198

Closed carterbox closed 2 years ago

carterbox commented 2 years ago

Fixes some implementation differences in the lstsq_grad method that cause less good performance of this algorithm. These differences include using the farplane gradient directly in the nearplane updates, adding some tiny constants to prevent instability, and only using real values for the optimal steps.