cpp: void print_array(int m,\nDATA_TYPE POLYBENCH_2D(symmat,M,M,m,m))\n\n{\nint i, j;\n\nfor (i = 0; i < m; i++)\nfor (j = 0; j < m; j++) {\nfprintf (stderr, DATA_PRINTF_MODIFIER, symmat[i][j]);\nif ((i * m + j) % 20 == 0) fprintf (stderr, "\n");\n}\nfprintf (stderr, "\n");\n}
fortran: subroutine print_array(m, symmat)\nimplicit none\n\nDATA_TYPE, dimension(m, m) :: symmat\ninteger :: m\ninteger :: i, j\ndo i = 1, m\ndo j = 1, m\nwrite(0, DATA_PRINTF_MODIFIER) symmat(j, i)\nif (mod(((i - 1) * m) + j - 1, 20) == 0) then\nwrite(0, *)\nend if\nend do\nend do\nwrite(0, *)\nend subroutine