Lines Matching refs:rows
44 static elem_t* new_matrix(const int rows, const int cols) in new_matrix() argument
46 assert(rows > 0); in new_matrix()
48 return malloc(rows * cols * sizeof(elem_t)); in new_matrix()
58 static void init_matrix(elem_t* const a, const int rows, const int cols) in init_matrix() argument
61 for (i = 0; i < rows; i++) in init_matrix()
63 for (j = 0; j < rows; j++) in init_matrix()
72 const elem_t* const a, const int rows, const int cols) in print_matrix() argument
76 for (i = 0; i < rows; i++) in print_matrix()
158 static void gj(elem_t* const a, const int rows, const int cols) in gj() argument
162 for (i = 0; i < rows; i++) in gj()
167 for (k = i + 1; k < rows; k++) in gj()
198 for (j = 0; j < rows; j++) in gj()
213 for (j = 0; j < rows; j++) in gj()