forked from rcc02007/ME3255F2017
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
updated HW4
- Loading branch information
Showing
5 changed files
with
58 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
function [d,u]=lu_tridiag(e,f); | ||
% chol_tridiag calculates the components for Cholesky factorization of a symmetric | ||
% positive definite tridiagonal matrix | ||
% given its off-diagonal vector, e | ||
% and diagonal vector f | ||
% the output is | ||
% the diagonal of the Upper matrix, d | ||
% the off-diagonal of the Upper matrix, u | ||
|
||
end | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
function x=solve_tridiag(ud,uo,lo,b);``` | ||
% solve_tridiag solves Ax=b for x | ||
% given | ||
% the diagonal of the Upper matrix, ud | ||
% the off-diagonal of the Upper matrix, uo | ||
% the off-diagonal of the Lower matrix, lo | ||
% the diagonal of the Cholesky matrix, d | ||
% the off-diagonal of the Upper matrix, u | ||
% the vector b | ||
% note: the diagonal of the Lower matrix is all ones | ||
|
||
end | ||
|