source: CIVL/examples/matmat.cvl@ 73f1e27

1.23 2.0 acw/focus-triggers main test-branch
Last change on this file since 73f1e27 was 364cc7e, checked in by Tim Zirkel <zirkeltk@…>, 13 years ago

Added sequential diffusion and matmat examples.

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

  • Property mode set to 100644
File size: 305 bytes
Line 
1int L = 4;
2int M = 5;
3int N = 6;
4\input double A[L][M];
5\input double B[M][N];
6double C[L][N];
7
8void spec() {
9 for (int i = 0; i < L; i++)
10 for (int j = 0; j < N; j++) {
11 C[i][j] = 0.0;
12 for (int k = 0; k < M; k++)
13 C[i][j] += A[i][k] * B[k][j];
14 }
15}
16
17void main() {
18 spec();
19
20}
Note: See TracBrowser for help on using the repository browser.