~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/linear/spchol.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
spchol            Scilab Group            Scilab Function            spchol
 
2
NAME
 
3
   spchol - sparse cholesky factorization
 
4
  
 
5
CALLING SEQUENCE
 
6
 [R,P] = spchol(X)
 
7
PARAMETERS
 
8
 X    : symmetric positive definite real  sparse matrix
 
9
      
 
10
 P    :  permutation matrix
 
11
      
 
12
 R    :  cholesky factor
 
13
      
 
14
DESCRIPTION
 
15
   [R,P] = spchol(X) produces a  lower triangular matrix R such that
 
16
  P*R*R'*P' = X.
 
17
  
 
18
EXAMPLE
 
19
 X=[
 
20
 3.,  0.,  0.,  2.,  0.,  0.,  2.,  0.,  2.,  0.,  0. ;
 
21
 0.,  5.,  4.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0. ;
 
22
 0.,  4.,  5.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0. ;
 
23
 2.,  0.,  0.,  3.,  0.,  0.,  2.,  0.,  2.,  0.,  0. ;
 
24
 0.,  0.,  0.,  0. , 5.,  0.,  0.,  0.,  0.,  0.,  4. ;
 
25
 0.,  0.,  0.,  0.,  0.,  4.,  0.,  3.,  0.,  3.,  0. ;
 
26
 2.,  0.,  0.,  2.,  0.,  0.,  3.,  0.,  2.,  0.,  0. ;
 
27
 0.,  0.,  0.,  0.,  0.,  3.,  0.,  4.,  0.,  3.,  0. ;
 
28
 2.,  0.,  0.,  2.,  0.,  0.,  2.,  0.,  3.,  0.,  0. ;
 
29
 0.,  0.,  0.,  0.,  0.,  3.,  0.,  3.,  0.,  4.,  0. ;
 
30
 0.,  0.,  0.,  0.,  4.,  0.,  0.,  0.,  0.,  0.,  5.];
 
31
 X=sparse(X);[R,P] = spchol(X);
 
32
 max(P*R*R'*P'-X)
 
33
SEE ALSO
 
34
   sparse, lusolve, luget, chol
 
35