1 /* matmul.c 128*128 matrix multiply */
8 float a
[N
][N
], b
[N
][N
], c
[N
][N
];
11 /* We read matrix a */
14 scanf(" %f",&a
[i
][j
]);
16 /* We read matrix b */
19 scanf(" %f",&b
[i
][j
]);
30 c
[i
][j
] = c
[i
][j
] + a
[i
][k
]*b
[k
][j
];
34 /* We print matrix c */
38 printf("%6.2f ",c
[i
][j
]);