repo.or.cz
/
candl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add piplib.h.in file
[candl.git]
/
tests
/
unitary
/
lu.c
blob
1ddecd86f2b8395a0d441292cccb4288cb54ad08
1
void
main
(){
2
float
a
[
10
][
10
];
3
4
int
K
,
n
,
j
,
k
;
5
6
#pragma scop
7
for
(
K
=
1
;
K
<=
n
;
K
++){
8
for
(
j
=
K
;
j
<=
n
;
j
++)
9
for
(
k
=
1
;
k
<=
K
-
1
;
k
++)
10
a
[
K
][
j
] -=
a
[
K
][
k
] *
a
[
k
][
j
];
11
for
(
j
=
K
+
1
;
j
<=
n
;
j
++){
12
for
(
k
=
1
;
k
<=
K
-
1
;
k
++)
13
a
[
j
][
K
] -=
a
[
j
][
k
] *
a
[
k
][
K
];
14
a
[
j
][
K
] /=
a
[
K
][
K
];
15
}
16
}
17
#pragma endscop
18
}