Numerical linear algebra

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

AMS526: Numerical Analysis I (Numerical Linear Algebra)

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

Numerical Methods in Matrix Computations

6.4 Krylov Subspaces and Conjugate Gradients

9.1 Preconditioned Krylov Subspace Methods

APPLIED NUMERICAL LINEAR ALGEBRA

Main matrix factorizations

MS&E 318 (CME 338) Large-Scale Numerical Optimization

A Method for Constructing Diagonally Dominant Preconditioners based on Jacobi Rotations

TEACHING NUMERICAL LINEAR ALGEBRA AT THE UNDERGRADUATE LEVEL by Biswa Nath Datta Department of Mathematical Sciences Northern Illinois University

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

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

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

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

From Stationary Methods to Krylov Subspaces

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

Iterative methods for Linear System

Preface to the Second Edition. Preface to the First Edition

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

Lecture 6, Sci. Comp. for DPhil Students

ITERATIVE METHODS FOR SPARSE LINEAR SYSTEMS

Linear Algebra Review

AM 205: lecture 8. Last time: Cholesky factorization, QR factorization Today: how to compute the QR factorization, the Singular Value Decomposition

Preliminary/Qualifying Exam in Numerical Analysis (Math 502a) Spring 2012

Course Notes: Week 1

Applied Linear Algebra in Geoscience Using MATLAB

1 Conjugate gradients

FEM and sparse linear system solving

B553 Lecture 5: Matrix Algebra Review

STA141C: Big Data & High Performance Statistical Computing

Applied Linear Algebra in Geoscience Using MATLAB

Index. for generalized eigenvalue problem, butterfly form, 211

Iterative Methods and Multigrid

CS 323: Numerical Analysis and Computing

On the influence of eigenvalues on Bi-CG residual norms

Computational Linear Algebra

Lecture 8: Fast Linear Solvers (Part 7)

course overview 18.06: Linear Algebra

LINEAR ALGEBRA: NUMERICAL METHODS. Version: August 12,

EECS 275 Matrix Computation

Scientific Computing

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

4.8 Arnoldi Iteration, Krylov Subspaces and GMRES

Algebra C Numerical Linear Algebra Sample Exam Problems

STA141C: Big Data & High Performance Statistical Computing

Math 405: Numerical Methods for Differential Equations 2016 W1 Topics 10: Matrix Eigenvalues and the Symmetric QR Algorithm

LINEAR SYSTEMS (11) Intensive Computation

4.6 Iterative Solvers for Linear Systems

Data Mining Lecture 4: Covariance, EVD, PCA & SVD

Introduction. Chapter One

Introduction to Scientific Computing

Motivation: Sparse matrices and numerical PDE's

Numerical Methods. Elena loli Piccolomini. Civil Engeneering. piccolom. Metodi Numerici M p. 1/??

1 Singular Value Decomposition and Principal Component

The Conjugate Gradient Method

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

Topics. The CG Algorithm Algorithmic Options CG s Two Main Convergence Theorems

Numerical Methods I Non-Square and Sparse Linear Systems

Some minimization problems

Linear Algebra. PHY 604: Computational Methods in Physics and Astrophysics II

Index. Copyright (c)2007 The Society for Industrial and Applied Mathematics From: Matrix Methods in Data Mining and Pattern Recgonition By: Lars Elden

Classical iterative methods for linear systems

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.

EECS 275 Matrix Computation

Solving Linear Systems

Lecture 17: Iterative Methods and Sparse Linear Algebra

Conjugate gradient method. Descent method. Conjugate search direction. Conjugate Gradient Algorithm (294)

Lecture 9: Numerical Linear Algebra Primer (February 11st)

Numerical Methods - Numerical Linear Algebra

CME 302: NUMERICAL LINEAR ALGEBRA FALL 2005/06 LECTURE 0

MATCOM and Selected MATCOM Functions

Numerical methods, midterm test I (2018/19 autumn, group A) Solutions

Applied Linear Algebra

Solving Ax = b, an overview. Program

Background Mathematics (2/2) 1. David Barber

Linear Algebra, part 3 QR and SVD

Sparse BLAS-3 Reduction

Linear Algebra Methods for Data Mining

Krylov Subspaces. Lab 1. The Arnoldi Iteration

Lab 1: Iterative Methods for Solving Linear Systems

Parallel Iterative Methods for Sparse Linear Systems. H. Martin Bücker Lehrstuhl für Hochleistungsrechnen

BlockMatrixComputations and the Singular Value Decomposition. ATaleofTwoIdeas

Matrix Algorithms. Volume II: Eigensystems. G. W. Stewart H1HJ1L. University of Maryland College Park, Maryland

Numerical Linear Algebra Primer. Ryan Tibshirani Convex Optimization /36-725

EECS 275 Matrix Computation

Linear Algebra in Actuarial Science: Slides to the lecture

Lecture 2: Numerical linear algebra

Image Registration Lecture 2: Vectors and Matrices

Lecture 18 Classical Iterative Methods

M.A. Botchev. September 5, 2014

1 Extrapolation: A Hint of Things to Come

1 Number Systems and Errors 1

Section 4.5 Eigenvalues of Symmetric Tridiagonal Matrices

Preconditioning Techniques Analysis for CG Method

The Lanczos and conjugate gradient algorithms

Numerical Linear Algebra

Linear algebra & Numerical Analysis

Krylov Subspaces. The order-n Krylov subspace of A generated by x is

Applied Mathematics 205. Unit II: Numerical Linear Algebra. Lecturer: Dr. David Knezevic

Transcription:

Numerical linear algebra Purdue University CS 51500 Fall 2017 David Gleich

David F. Gleich Call me Prof Gleich Dr. Gleich Please not Hey matrix guy!

Huda Nassar Call me Huda Ms. Huda Please not Matrix girl

Numerical linear algebra Or Matrix computations

Purpose Matrix computations underlie much (most?) of applied computations. It s the language of computational algorithms.

PageRank (from the paper)

BFGS 3. The Generalized Method In this method (Broyden, 1967) the vector p, is given by P, = -H,f (> (3.1) where H, is positive definite. Hi is chosen to be an arbitrary positive definite matrix (often the unit matrix) and H, + i is given by where H /+1 = Ht-Hgrf+Wfif, i = 1,2,..., (3.2a) y; = f 1+,-f (, (3.2b) q[ = a ipi r -^r H ( > (3.2c) (3.2d) (3.2e) (3.20 The parameter /?, is arbitrary and setting it equal to zero gives the DFP method (Fletcher & Powell, 1963). It was shown by Broyden (1967) that the matrices H, constructed in this way are always positive definite if /?, > 0.

Circular antennae design B. Port Description of Array Since relatively few of the elements of V are nonzero some reduction in (3) is possible. Only those columns of Y which correspond to indices of triangles centered at. the dipole mid-point,s need be retained in (3); denote as YR the rectangular matzix obtained by delet.ing all columns of Y not having such a column index. Then, I = YRVT (8 1 where VT is the N vector formed by deleting all ident.ically zero elements of V. YR is denoted t,he reduced admittance matrix. Furthermore, if only the feed-point. currents a.re of interest, a similar reduction may be performed on rows of YR and I to yield, IT = YTVT (9 1

Dynamic mode decomposition

Electrical circuits A matrix version of Kirchhoff s circuit law is the basis of most circuit simulation software -- Wikipedia

Other applications Biology PDEs/Mechanical Engineering/AeroAstro Machine learning Statistics Graphics

Purpose The purpose this class is to teach you how to speak matrix computations like a native so that you can understand, implement, interpret, and extend work that uses them.

Examples Why should we avoid the normal equations? Why do I get strange looks if I talk about the SVD of a symmetric positive definite matrix? Why not write things element-wise?

Overview of the material Basics subspaces, rank, inverses, inner-products, norms, orthogonality, permutations Dense matrix computations linear systems, triangular systems, QR factorization, Householder matrices, LU decomposition, Cholesky decomposition, condition numbers, linear least squares, eigenvalues Sparse matrix computations Jacobi, Gauss-Seidel, SOR, basic convergence theory, CG, Lanczos, Arnoldi, GMRES, restarted GMRES, symmetric solvers, non-symmetric solvers, preconditioners

Textbooks No best reference. Golub and van Loan The Bible but sometimes a bit terse Trefethen & Bau, Numerical Linear Algebra Demmel, Applied Numerical Linear Algebra Saad, Iterative Methods for Sparse Linear Systems

Background books Strang, Linear Algebra and its Applications Meyer, Matrix Analysis

Why I like Julia & Matlab Julia Designed as a technical computing language Matlab it s a modeling language for matrix methods! The power method described in Wikipedia while 1 a = b; b = A*b; b = b/norm(b); if test_converge(a,b); break; end end Matlab & Julia code x = b # make a reference to A y = zeros(length(b)) # allocate while 1 A_mul_B!(y,A,x) # y = Ax scale!(y,1/norm(x)) # scale if test_converge(x,y); break; end x,y == y,x # swap pointers, not end Super efficient Julia code

Software You will have to write matrix programs in class. Julia & Atom my recommendation Julia & Jupyter notebook my 2 nd recommendation SciPy, NumPy okay (look at spyder/pythonxy) Matlab what I used to use R not recommended, best to avoid Scilab you re on your own C/C++ with LAPACK okay, but ill-advised; this is the macho approach

One more thing This is a distance class! Help me to remember that important stuff should be on projector 1! Also, help remind me to repeat questions.

THE SYLLABUS

Cut to website!