andreaconsole
andreaconsole

Reputation: 452

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

Upvotes: 11

Views: 2613

Answers (1)

tiago
tiago

Reputation: 23492

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.

Upvotes: 15

Related Questions