File: KSPLSQR.html

package info (click to toggle)
petsc 3.1.dfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 131,360 kB
  • ctags: 491,710
  • sloc: ansic: 288,064; cpp: 66,909; python: 28,799; fortran: 19,153; makefile: 13,945; sh: 3,502; f90: 1,655; xml: 620; csh: 230; java: 13
file content (40 lines) | stat: -rw-r--r-- 2,633 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>KSPLSQR</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<A NAME="KSPLSQR"><H1>KSPLSQR</H1></A>
This implements LSQR 
<H3><FONT COLOR="#CC3333">Options Database Keys</FONT></H3>
<DT><B>see <A HREF="../KSP/KSPSolve.html#KSPSolve">KSPSolve</A>()</B> -

<br>
<P>
<H3><FONT COLOR="#CC3333">Notes</FONT></H3>
This varient, when applied with no preconditioning is identical to the original algorithm in exact arithematic; however, in practice, with no preconditioning
due to inexact arithematic, it can converge differently. Hence when no preconditioner is used (<A HREF="../PC/PCType.html#PCType">PCType</A> <A HREF="../PC/PCNONE.html#PCNONE">PCNONE</A>) it automatically reverts to the original algorithm.
<P>
With the PETSc built-in preconditioners, such as ICC, one should call <A HREF="../KSP/KSPSetOperators.html#KSPSetOperators">KSPSetOperators</A>(ksp,A,A'*A,...) since the preconditioner needs to work
for the normal equations A'*A.
<P>
Supports only left preconditioning.
<P>
References:The original unpreconditioned algorithm can be found in Paige and Saunders, ACM Transactions on Mathematical Software, Vol 8, pp 43-71, 1982.
In exact arithmetic the LSQR method (with no preconditioning) is identical to the <A HREF="../KSP/KSPCG.html#KSPCG">KSPCG</A> algorithm applied to the normal equations.
The preconditioned varient was implemented by Bas van't Hof and is essentially a left preconditioning for the Normal Equations.
<P>
Developer Notes: How is this related to the <A HREF="../KSP/KSPCGNE.html#KSPCGNE">KSPCGNE</A> implementation? One difference is that <A HREF="../KSP/KSPCGNE.html#KSPCGNE">KSPCGNE</A> applies
the preconditioner transpose times the preconditioner,  so one does not need to pass A'*A as the third argument to <A HREF="../KSP/KSPSetOperators.html#KSPSetOperators">KSPSetOperators</A>().
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
  <A HREF="../KSP/KSPCreate.html#KSPCreate">KSPCreate</A>(), <A HREF="../KSP/KSPSetType.html#KSPSetType">KSPSetType</A>(), <A HREF="../KSP/KSPType.html#KSPType">KSPType</A> (for list of available types), <A HREF="../KSP/KSP.html#KSP">KSP</A>
<BR>
<P>
<P><B><P><B><FONT COLOR="#CC3333">Level:</FONT></B>beginner
<BR><FONT COLOR="#CC3333">Location:</FONT></B><A HREF="../../../src/ksp/ksp/impls/lsqr/lsqr.c.html#KSPLSQR">src/ksp/ksp/impls/lsqr/lsqr.c</A>
<BR><A HREF="./index.html">Index of all KSP routines</A>
<BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
<BR><A HREF="../singleindex.html">Index of all manual pages</A>
</BODY></HTML>