[petsc-users] using KSPLSQR and SKPCGNE

Chetan Jhurani chetan.jhurani at gmail.com
Mon Jan 17 21:42:03 CST 2011

See the emails in this thread "KSPLSQR convergence criterion" for
explicit calls for LSQR and some more info.


From: petsc-users-bounces at mcs.anl.gov
[mailto:petsc-users-bounces at mcs.anl.gov] On Behalf Of Gaurish Telang
Sent: Monday, January 17, 2011 01:16 AM
To: petsc-users at mcs.anl.gov
Subject: [petsc-users] using KSPLSQR and SKPCGNE


I am new to PETSc and I wanted to solve some least squares problems with it.
On searching the net I found that KSPLSQR() and KSPCGNE() solve the least
squares system |Ax-b|

But I don't really know how to use these functions to get my answer. This
manual page did not help:

Apparently no tutorial code uses these functions. 

If anyone could could give a small code snippet of how to use these
functions (assuming A and b are given) then it would be really helpful. 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110117/bb57e51c/attachment.htm>

More information about the petsc-users mailing list