Skip to content
Permalink
4963f620e8
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
12 lines (10 sloc) 414 Bytes
function [ud,uo,lo]=lu_tridiag(e,f,g);```
% lu_tridiag calculates the components for LU-decomposition of a tridiagonal matrix
% given its off-diagonal vectors, e and g
% and diagonal vector f
% the output is
% the diagonal of the Upper matrix, ud
% the off-diagonal of the Upper matrix, uo
% and the off-diagonal of the Lower matrix, lo
% note: the diagonal of the Lower matrix is all ones
end