repo.or.cz
/
omega.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
petit: make argument of Write const
[omega.git]
/
petit
/
demo
/
lu.t
blob
4adca712ec3b4400fea2711be014bfe724b83b24
1
real a(100,100),b(100)
2
integer n
3
!
4
! For LU decomposition, we can also
5
! obtain all 6 permutations. Normal
6
! loop interchange techniques can't
7
! produce the ijk ordering
8
!
9
!
10
for k = 1 to n do
11
for i = k+1 to n do
12
a(i,k) = a(i,k) / a(k,k)
13
for j = k+1 to n do
14
a(i,j) = a(i,j) - a(i,k)*a(k,j)
15
endfor
16
endfor
17
endfor