See the emails in this thread "KSPLSQR convergence criterion" for explicit calls for LSQR and some more info. http://lists.mcs.anl.gov/pipermail/petsc-users/2010-August/thread.html#6784 Chetan
_____ From: [email protected] [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 Hi, 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: http://www.mcs.anl.gov/petsc/petsc-2/snapshots/petsc-current/docs/manualpage s/KSP/KSPLSQR.html 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. Thanks, Gaurish -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110117/bb57e51c/attachment.htm>
