RosettaCodeData/Task/Cholesky-decomposition/MATLAB/cholesky-decomposition.m

14 lines
190 B
Mathematica
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
A = [
25 15 -5
15 18 0
-5 0 11 ];
B = [
18 22 54 42
22 70 86 62
54 86 174 134
42 62 134 106 ];
[L] = chol(A,'lower')
[L] = chol(B,'lower')