Previous Up Next

15.3.9  LDL decomposition

The ldl command computes the LDL decomposition of the given symmetric (real or complex) or Hermitian matrix A.

Example

A:=[[1,-1,2],[-1,4,3],[2,3,-5]]
     
⎡
⎢
⎢
⎣
1−12
−143
23−5
⎤
⎥
⎥
⎦
          
ldl(A)
     
⎡
⎣
0,2,1⎤
⎦
,
⎡
⎢
⎢
⎢
⎢
⎢
⎣
100
210
−1
−
5
9
1
⎤
⎥
⎥
⎥
⎥
⎥
⎦
,
⎡
⎢
⎢
⎢
⎢
⎢
⎣
100
0−90
00
52
9
⎤
⎥
⎥
⎥
⎥
⎥
⎦
          

Previous Up Next