File: lu.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (35 lines) | stat: -rw-r--r-- 1,119 bytes parent folder | download
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
lu              Scilab Group              Scilab Function                lu
NAME
   lu - LU factors of Gaussian elimination
  
CALLING SEQUENCE
 [L,U]= lu(A)
 [L,U,E]= lu(A)
PARAMETERS
 A    : real or complex square matrix (n x n).
      
 L,U  : two real or complex matrices  (n x n).
      
 E    : a (n x n) permutation matrix.
      
DESCRIPTION
   produces two matrices L and U such that A = L*U with U upper triangular
  and E*L  lower triangular for  a permutation matrix E.   If A has rank k,
  rows k+1 to n of U are zero. 
  
   produces three matrices L, U and E such that E*A = L*U with U upper
  triangular and E*L  lower triangular for  a permutation matrix E.  
  
REMARK
    If A is a real matrix, using the function lufact and \frluget it is
  possible to obtain the permutation matrices and also when A is not full
  rank the column compression of the matrix L. 
  
 [h,rk]=lufact(sparse(a))  // lufact works with sparse real matrices 
 [P,L,U,Q]=luget(h)
 ludel(h)
 P=full(P);L=full(L);U=full(U);Q=full(Q); 
 // P,Q are permutation matrices P*L*U*Q=A 
SEE ALSO
   lufact, luget, lusolve, qr, svd