1 /* matmul.c 128*128 matrix multiply */
8 float a
[N
][N
], b
[N
][N
], c
[N
][N
];
10 /* We read matrix a */
13 scanf(" %f",&a
[i
][j
]);
15 /* We read matrix b */
18 scanf(" %f",&b
[i
][j
]);
27 c
[i
][j
] = c
[i
][j
] + a
[i
][k
]*b
[k
][j
];
31 /* We print matrix c */
35 printf("%6.2f ",c
[i
][j
]);