Iterative Methods Mostly for SPD systems Iterative Linear - - PDF document

iterative methods
SMART_READER_LITE
LIVE PREVIEW

Iterative Methods Mostly for SPD systems Iterative Linear - - PDF document

Iterative Methods Mostly for SPD systems Iterative Linear conjugate gradient and its variants System Solvers for Large, Sparse Matrices minimize through successive line searches CS 176 Spring 2011 CS 176 Spring 2011 1 2 Steepest


slide-1
SLIDE 1

Iterative Linear System Solvers for Large, Sparse

CS 176 Spring 2011

1

Matrices Iterative Methods

Mostly for SPD systems

 conjugate gradient and its variants

CS 176 Spring 2011

2

 minimize through successive line

searches

Steepest Descent

Decrease function

 negative of gradient

h h

CS 176 Spring 2011

3

 how much?

Steepest Descent

How much?

CS 176 Spring 2011

4

Steepest Descent

Algorithm

CS 176 Spring 2011

5

Let’s do Better

Conjugate directions

 don’t undo earlier gains

CS 176 Spring 2011

6

slide-2
SLIDE 2

Conjugate Gradient

Directions A-orthogonal to error

CS 176 Spring 2011

7

Conjugate Gradient

Next direction?

 orthogonal to all others  easy update:

CS 176 Spring 2011

8

Algorithm

Sweeps matrix multiply dot product acc.

What happened to d? (see section 7.3 of Shewchuk)

CS 176 Spring 2011

9 update dot product acc. update

Iterative Methods

What you’ll need

 you supply  given topological datastructure

i l i l i li

CS 176 Spring 2011

10

 implement matrix multiplies

 stopping criterion: relative residual

Typical Implementation

What lives where?

 degrees of freedom at vertices

 need additional variables for solver

t i t i d

CS 176 Spring 2011

11

 matrix entries on edges

Matrix multiplies

 iterate over mesh!  mesh is sparse matrix data structure

Iterative Methods

Other issues

 number of iterations proportional

to  (steepest descent),  (CG)

 preconditioning

CS 176 Spring 2011

12

 preconditioning

 use approximate inverse

 diagonal (Jacobi)  incomplete Cholesky,

hierarchical,…

slide-3
SLIDE 3

Other System Types

SPD

 conjugate gradients  Shewchuk, “CG w/o the Agony”

CS 176 Spring 2011

13

non-S PD & non-S non-PD

 bi-conjugate gradients  see Numerical Recipes

 http://www.nr.com/ (chapter 2.7)