main
test-branch
|
Last change
on this file since beab7f2 was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago |
|
Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
556 bytes
|
| Line | |
|---|
| 1 | PROGRAM MXMDRIVER
|
|---|
| 2 |
|
|---|
| 3 | INTEGER N = 4
|
|---|
| 4 | real A(N,N),B(N,N),C(N,N)
|
|---|
| 5 | INTEGER I,J
|
|---|
| 6 |
|
|---|
| 7 | DO J=1,N
|
|---|
| 8 | DO I=1,N
|
|---|
| 9 | A(I,J) = 1.0*(I+J)
|
|---|
| 10 | B(I,J) = 1.0*(I-J)
|
|---|
| 11 | ENDDO
|
|---|
| 12 | ENDDO
|
|---|
| 13 |
|
|---|
| 14 | c DO I=1,N
|
|---|
| 15 | c DO J=1,N
|
|---|
| 16 | c C(I,J) = 0.0
|
|---|
| 17 | c DO K=1,N
|
|---|
| 18 | c C(I,J) = C(I,J) + A(I,K)*B(K,J)
|
|---|
| 19 | c ENDDO
|
|---|
| 20 | c ENDDO
|
|---|
| 21 | c ENDDO
|
|---|
| 22 |
|
|---|
| 23 | call mxm44_0(A,N,B,N,C,N)
|
|---|
| 24 |
|
|---|
| 25 | DO J=1,N
|
|---|
| 26 | DO I=1,N
|
|---|
| 27 | c PRINT *,"C(",I,",",J,") = ",C(I,J)
|
|---|
| 28 | ENDDO
|
|---|
| 29 | ENDDO
|
|---|
| 30 |
|
|---|
| 31 | END
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.