Lab 13 · Lecture 13 · LU, Cholesky and Tridiagonal Systems

LU Cholesky Thomas Lab

Factor your own matrices step by step (LU with or without pivoting, Cholesky), then solve many right-hand sides and tridiagonal systems in code.

Type [A | b] (or just A). Watch L fill with the multipliers while U is eliminated, then the forward and backward substitutions. Turn on pivoting to see PA = LU.