source: CIVL/examples/fortran/provesaExamples/MXM/mxmdriver.F@ aaa9c8d

1.23 2.0 main test-branch
Last change on this file since aaa9c8d was b7b71e8, checked in by Wenhao Wu <wuwenhao@…>, 10 years ago

Add two folder under the directory of civl/example/fortran

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@3130 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 575 bytes
RevLine 
[b7b71e8]1 PROGRAM MXMDRIVER
2
3 INTEGER N
4 PARAMETER (N=4)
5 real A(N,N),B(N,N),C(N,N)
6 INTEGER I,J
7
8 DO J=1,N
9 DO I=1,N
10 A(I,J) = 1.0*(I+J)
11 B(I,J) = 1.0*(I-J)
12 ENDDO
13 ENDDO
14
15c DO I=1,N
16c DO J=1,N
17c C(I,J) = 0.0
18c DO K=1,N
19c C(I,J) = C(I,J) + A(I,K)*B(K,J)
20c ENDDO
21c ENDDO
22c ENDDO
23
24 call mxm44_0(A,N,B,N,C,N)
25
26 DO J=1,N
27 DO I=1,N
28 PRINT *,'C(',I,',',J,') = ',C(I,J)
29 ENDDO
30 ENDDO
31
32 END
Note: See TracBrowser for help on using the repository browser.