/* // For testing purposes, fill the matrix a[][] with // randomly distributed integers in the range [-N, N]. */ #include "matrix.h" void fill_matrix(matrix a, int m, int n) { int i, j; for (i = 1; i <= m; ++i) for (j = 1; j <= n; ++j) a[i][j] = rand() % (2 * N + 1) - N; }