MCPcopy Create free account
hub / github.com/apache/groovy / mmult

Method mmult

benchmark/bench/matrix.java:39–50  ·  view source on GitHub ↗
(int rows, int cols, 
                          int[][] m1, int[][] m2, int[][] m3)

Source from the content-addressed store, hash-verified

37 }
38
39 public static void mmult (int rows, int cols,
40 int[][] m1, int[][] m2, int[][] m3) {
41 for (int i=0; i<rows; i++) {
42 for (int j=0; j<cols; j++) {
43 int val = 0;
44 for (int k=0; k<cols; k++) {
45 val += m1[i][k] * m2[k][j];
46 }
47 m3[i][j] = val;
48 }
49 }
50 }
51}

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected