home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / MISC / IFP05.ZIP / FPMATH.EXE / LINEAR.EXE / LU < prev    next >
Encoding:
Text File  |  1987-02-09  |  442 b   |  27 lines

  1. (* 
  2.  * LU
  3.  *
  4.  * [L,U] decomposition of matrix written as single function.
  5.  * This function is functionally identical to [L,U]
  6.  *)
  7.  
  8. DEF LU AS
  9.    IF Singleton THEN [#<<1.0>>,id]        (* definition of L *)
  10.    ELSE 
  11.       [
  12.          Li1,
  13.          Aik | [EACH #0 END,LU],
  14.      U1k
  15.       ] | 
  16.       [
  17.      [
  18.         1,
  19.         2 | [1,2|1] | apndl
  20.      ] | ApndlCol,
  21.      [
  22.         3,
  23.         2 | [1,2|2] | ApndlCol
  24.      ] | apndl
  25.       ]
  26.    END;
  27.