summaryrefslogtreecommitdiff
path: root/src/Scilab2C/SCI2CTests/Mes_tests/matrixOperations/mainfunctionChol.sci
blob: 46f8c409c11eec8a0357e3f047e9bd47a18cf9ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//SCI2C: DEFAULT_PRECISION= DOUBLE

function mainfunction()

//test chol

//real
disp (chol(4))

a=[1 0 5; -2 4 0 ; -4 -2 -1]
a2=a*a'
disp (chol(a2))


//complex
disp (chol(4-2*%i))


b=[1+%i 0+0*%i; 5-2*%i 4+0*%i]
b2=b*b'
disp (chol(b2))


endfunction