Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

differences between scipy.sparse.linalg.lsmr and scipy.sparse.linalg.lsqr

Does anybody know when is better to choose which? They seem the same to me...

lsmr lsqr

like image 478
andreaconsole Avatar asked Aug 22 '12 07:08

andreaconsole


1 Answers

Both packages do the same. LSMR is based on Fong & Saunders algorithm from 2010 (see paper), and has been introduced in scipy very recently (ie, version 0.10 and earlier won't have it). According to the paper, LSMR should converge faster than LSQR, which uses the Paige & Saunders algorithm that has been around for almost 30 years.

like image 178
tiago Avatar answered Nov 06 '22 07:11

tiago