Motivation: Sparse matrices and numerical PDE's

Similar documents
Computational Linear Algebra

APPLIED NUMERICAL LINEAR ALGEBRA

Scientific Computing with Case Studies SIAM Press, Lecture Notes for Unit VII Sparse Matrix

9.1 Preconditioned Krylov Subspace Methods

Lecture 11: CMSC 878R/AMSC698R. Iterative Methods An introduction. Outline. Inverse, LU decomposition, Cholesky, SVD, etc.

Chapter 7 Iterative Techniques in Matrix Algebra

Numerical Methods I Non-Square and Sparse Linear Systems

Lab 1: Iterative Methods for Solving Linear Systems

The Conjugate Gradient Method

Lecture 18 Classical Iterative Methods

AMS526: Numerical Analysis I (Numerical Linear Algebra for Computational and Data Sciences)

Cache Oblivious Stencil Computations

Iterative Methods for Solving A x = b

AMS526: Numerical Analysis I (Numerical Linear Algebra)

9. Iterative Methods for Large Linear Systems

JACOBI S ITERATION METHOD

Lecture 9 Approximations of Laplace s Equation, Finite Element Method. Mathématiques appliquées (MATH0504-1) B. Dewals, C.

From Stationary Methods to Krylov Subspaces

Numerical Methods - Numerical Linear Algebra

Iterative Methods. Splitting Methods

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 9

Boundary Value Problems - Solving 3-D Finite-Difference problems Jacob White

ITERATIVE PROJECTION METHODS FOR SPARSE LINEAR SYSTEMS AND EIGENPROBLEMS CHAPTER 3 : SEMI-ITERATIVE METHODS

Department of Mathematics California State University, Los Angeles Master s Degree Comprehensive Examination in. NUMERICAL ANALYSIS Spring 2015

6. Iterative Methods for Linear Systems. The stepwise approach to the solution...

Solving Linear Systems

Numerical Methods in Matrix Computations

SOLVING ELLIPTIC PDES

CAAM 454/554: Stationary Iterative Methods

Stabilization and Acceleration of Algebraic Multigrid Method

Introduction to Scientific Computing

Solving Symmetric Indefinite Systems with Symmetric Positive Definite Preconditioners

Math Introduction to Numerical Analysis - Class Notes. Fernando Guevara Vasquez. Version Date: January 17, 2012.

Multigrid absolute value preconditioning

Poisson Equation in 2D

Sparse Linear Systems. Iterative Methods for Sparse Linear Systems. Motivation for Studying Sparse Linear Systems. Partial Differential Equations

Notes on Some Methods for Solving Linear Systems

DEN: Linear algebra numerical view (GEM: Gauss elimination method for reducing a full rank matrix to upper-triangular

A Refinement of Gauss-Seidel Method for Solving. of Linear System of Equations

Solution of Matrix Eigenvalue Problem

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Theory of Iterative Methods

Preface to the Second Edition. Preface to the First Edition

AIMS Exercise Set # 1

SOLVING SPARSE LINEAR SYSTEMS OF EQUATIONS. Chao Yang Computational Research Division Lawrence Berkeley National Laboratory Berkeley, CA, USA

Course Notes: Week 1

Background. Background. C. T. Kelley NC State University tim C. T. Kelley Background NCSU, Spring / 58

1. Fast Iterative Solvers of SLE

Solving Linear Systems

1 Number Systems and Errors 1

Iterative methods for Linear System of Equations. Joint Advanced Student School (JASS-2009)

Kasetsart University Workshop. Multigrid methods: An introduction

AMS526: Numerical Analysis I (Numerical Linear Algebra) Lecture 23: GMRES and Other Krylov Subspace Methods; Preconditioning

EXAMPLES OF CLASSICAL ITERATIVE METHODS

Numerical tensor methods and their applications

Numerical Methods Process Systems Engineering ITERATIVE METHODS. Numerical methods in chemical engineering Edwin Zondervan

Contents. Preface... xi. Introduction...

Lecture 10b: iterative and direct linear solvers

Preconditioned inverse iteration and shift-invert Arnoldi method

CLASSICAL ITERATIVE METHODS

Modelling and implementation of algorithms in applied mathematics using MPI

Iterative Methods for Ax=b

Here is an example of a block diagonal matrix with Jordan Blocks on the diagonal: J

A LINEAR SYSTEMS OF EQUATIONS. By : Dewi Rachmatin

FEM and Sparse Linear System Solving

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

Computational Economics and Finance

Linear Systems of Equations. ChEn 2450

Sparse Matrix Techniques for MCAO

Applied Mathematics 205. Unit V: Eigenvalue Problems. Lecturer: Dr. David Knezevic

Fast Iterative Solution of Saddle Point Problems

Scientific Computing WS 2018/2019. Lecture 9. Jürgen Fuhrmann Lecture 9 Slide 1

30.5. Iterative Methods for Systems of Equations. Introduction. Prerequisites. Learning Outcomes

Numerical linear algebra

Lecture 3: Inexact inverse iteration with preconditioning

Math/Phys/Engr 428, Math 529/Phys 528 Numerical Methods - Summer Homework 3 Due: Tuesday, July 3, 2018

Lecture Note 7: Iterative methods for solving linear systems. Xiaoqun Zhang Shanghai Jiao Tong University

Lecture 17: Iterative Methods and Sparse Linear Algebra

Today s class. Linear Algebraic Equations LU Decomposition. Numerical Methods, Fall 2011 Lecture 8. Prof. Jinbo Bi CSE, UConn

SyDe312 (Winter 2005) Unit 1 - Solutions (continued)

The amount of work to construct each new guess from the previous one should be a small multiple of the number of nonzeros in A.

Parallel Numerics, WT 2016/ Iterative Methods for Sparse Linear Systems of Equations. page 1 of 1

Introduction to Applied Linear Algebra with MATLAB

4.6 Iterative Solvers for Linear Systems

Conjugate Gradient Method

Simple iteration procedure

Math 1080: Numerical Linear Algebra Chapter 4, Iterative Methods

Introduction. Math 1080: Numerical Linear Algebra Chapter 4, Iterative Methods. Example: First Order Richardson. Strategy

Algebra C Numerical Linear Algebra Sample Exam Problems

Linear Solvers. Andrew Hazel

Adaptive algebraic multigrid methods in lattice computations

Splitting Iteration Methods for Positive Definite Linear Systems

Outline Python, Numpy, and Matplotlib Making Models with Polynomials Making Models with Monte Carlo Error, Accuracy and Convergence Floating Point Mod

Finite Difference Methods (FDMs) 1

A parameter tuning technique of a weighted Jacobi-type preconditioner and its application to supernova simulations

HOMEWORK 10 SOLUTIONS

The Solution of Linear Systems AX = B

LINEAR ALGEBRA: NUMERICAL METHODS. Version: August 12,

Multigrid Methods for Discretized PDE Problems

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Transcription:

Lecture 20: Numerical Linear Algebra #4 Iterative methods and Eigenproblems Outline 1) Motivation: beyond LU for Ax=b A little PDE's and sparse matrices A) Temperature Equation B) Poisson Equation 2) Splitting Methods A) General Overview B) Jacobi C) Gauss-Seidel 3) Iterative methods for Finding Eigenvalues A) Power Method B) Inverse Power Method C) Inverse Power Method with shifts Basic Problem: 2-D Temperature evolution on a square with Heating TempBump.avi

Basic Problem: 2-D Temperature evolution on a square with Heating Basic Problem: 2-D Temperature evolution on a square with Heating Steady Solution

Basic Problem: Steady State Discrete Poisson's Equation by Finite Differences Basic Problem: Steady State Discrete Poisson's Equation by Finite Differences

Basic Problem: Steady State Discrete Poisson's Equation by Finite Differences -- stencil Notation Basic Problem: Steady State Discrete Poisson's Equation by Finite Differences -- matrix -vector form

PDE's as linear algebra Discrete Laplacian on a square -- spy(a) PDE's as linear algebra Sparse Direct Methods in Matlab width = 1; % size of domain N = 100; % number of full grid points on a side x = linspace(0,width,n); [X,Y]=meshgrid(x,x); dx = x(2)-x(1); % % set up square heat source % xmin=.3; xmax =.5; ymin=.5; ymax =.7; rho=(x>=xmin).*(x<=xmax).*(y>=ymin).*(y<=ymax); % % set up steady state problem % A = delsq(numgrid('s',n)); % get laplacian matrix index = [2:N-1]'; % subarray index b = dx*dx*reshape(rho(index,index),(n-2)^2,1); % rhs vector x=a\b; % solution vector T=zeros(size(X)); % solution array T(index,index) = reshape(u,n-2,n-2); % quick and dirty picture figure; imagesc(x,x,t); axis image; axis xy;

Iterative Methods for Linear systems Idea: given a guess for x, can we feed it back into Ax=b to get a better guess...if A is sparse, then Ax is cheap! Overall schemes: a) Basic Splitting schemes (Jacobi, Gauss-Seidel,SOR) b) Advanced iterative methods (Preconditioned Krylov subspace Schemes) c) Multi-grid schemes Iterative Methods for Linear systems Simple Splitting Schemes: (warning...by themselves these schemes are not practical, but can be very powerful as "pre-conditioners" or as part of Multi-grid schemes) Idea:

Iterative Methods for Linear systems Example: Jacobi Iteration U L D Iterative Methods for Linear systems Example: Gauss-Seidel Iteration U L D

Iterative Methods for Linear systems Convergence behavior of Splitting schemes Question: given a square matrix A. How do you find its largest eigenvalue (or spectral radius ρ(a) = λ )? max 1) Get an upper bound using matrix norms 2) try Power method

1) Naive Power method Issues: 1) if x is real, can never find complex eigenvalues 2) if ρ(a)>1 then method rapidly diverges 2) Normalized Power method More issues: 1) Can only find the largest eigenvalue 2) can converge very slowly

Convergence rate of normalized power method Inverse Power Method

Inverse Power Method with shifts Inverse Power Method with shifts - Rayleigh Quotient acceleration