1 /* Compute Cholesky decomposition of A,
2 * a lower-triangular matrix L such that L . transpose(L) = A
6 A : matrix ([a, b, c], [d, e, f], [g, h, i]);
7 A2 : transpose (A) . A;
9 B . transpose (B) - A2;
11 A : matrix ([2, 3, 4], [-2, 2,- 3], [11, -2, 3]);
12 A2 : transpose (A) . A;
14 B . transpose (B) - A2;
17 * copyright Robert Dodier, 2005/11/01
18 * Released under the terms of the GNU Public License
25 p : makelist (0, i, 1, length (A))],
30 x : x - sum (L[j, k] * L[i, k], k, 1, i - 1),
40 for j : i + 1 thru n do