Overview
Comment: | Initial revision |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
2a3fa5bb42d7eff83b41a9094edadd20 |
User & Date: | gawthrop@users.sourceforge.net on 1998-08-17 12:52:16 |
Other Links: | branch diff | manifest | tags |
Context
1998-08-17
| ||
12:58:16 | Initial revision check-in: a3b995ab44 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
12:52:16 | Initial revision check-in: 2a3fa5bb42 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
12:41:38 |
Renamed mtt_solve to mtt_solve_svd -- now also have mtt_solve_lu check-in: 4793b6bfca user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Added mttroot/mtt/bin/trans/p/mtt_solve_lud.p version [565d7f41a5].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | PROCEDURE mtt_solve_lud.p(VAR x : StateVector; A : StateMatrix; B : StateVector; n : integer); { Linear equation solution via LU factorisation} % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % $Id$ % % $Log$ % % Revision 1.1 1998/08/17 12:41:37 peterg % % Initial revision % % % % Revision 1.2 1998/08/14 12:09:13 peterg % % A passed by value - its destroyed by SVDcm % % % % Revision 1.1 1998/08/13 08:51:57 peterg % % Initial revision % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% } VAR i : integer; d : real; (*$I ludcmp.p *) (*$I lubksb.p *) BEGIN{mtt_solve} (* decompose matrix A using LU decomposition *) ludcmp(A,n,Index,d); (* backsubstitute for B *) lubksb(A,n,Index,B); (* x now lives in B *) FOR i := 1 TO n DO x[i] := B[i]; END{mtt_solve}; |