MCPcopy Index your code
hub / github.com/apache/groovy / mkmatrix

Method mkmatrix

benchmark/bench/matrix.java:28–37  ·  view source on GitHub ↗
(int rows, int cols)

Source from the content-addressed store, hash-verified

26 }
27
28 public static int[][] mkmatrix (int rows, int cols) {
29 int count = 1;
30 int m[][] = new int[rows][cols];
31 for (int i=0; i<rows; i++) {
32 for (int j=0; j<cols; j++) {
33 m[i][j] = count++;
34 }
35 }
36 return(m);
37 }
38
39 public static void mmult (int rows, int cols,
40 int[][] m1, int[][] m2, int[][] m3) {

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected