summaryrefslogtreecommitdiff
path: root/tests/unit_tests/test200_malloc/scilabcode/myinit.sci
blob: af38cf5cc0f936185e5a8a3b3355945d905d0a27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//SCI2C: NIN=          2
//SCI2C: NOUT=         1
//SCI2C: OUT(1).TP=    IN(1).TP
//SCI2C: OUT(1).SZ(1)= IN(1).VAL
//SCI2C: OUT(1).SZ(2)= IN(1).VAL
//SCI2C: DEFAULT_PRECISION= DOUBLE
function out = myinit(n,m)

out1 = m+ones(n,n);
out = out1+2*ones(n,n);

endfunction