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/manualpages/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/ea8efe7c/attachment.htm>
