MCPcopy Create free account
hub / github.com/AdvancedCompiler/AdvancedCompiler / matrixmulti

Function matrixmulti

code/Chapter8/8-11.c:6–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include<time.h>
5#define min(a,b) ((a)<(b)?(a):(b))
6void matrixmulti(float N, float**x, float** y, float** z)
7{
8 int i, j, k,r;
9 for (i = 0; i < N; i++) {
10 for (j = 0; j < N; j++) {
11 r = 0;
12 for (k = 0; k < N; k++) {
13 r = r + y[i][k] * z[k][j];
14 }
15 x[i][j] = r;
16 }
17 }
18}
19int main()
20{
21 int n, i, j;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected