1 # Matmul example, matrix representation
5 # =============================================== Global
15 # Parameter names are provided
20 # Iterator names are provided
25 # Scattering dimension names are not provided
28 # Number of statements
31 # =============================================== Statement 1
32 # Number of relations describing the statement
35 # ---------------------------------------------- 1.1 Domain
40 1 -1 0 1 -1 ## -i+N-1 >= 0
42 1 0 -1 1 -1 ## -j+N-1 >= 0
44 # ---------------------------------------------- 1.2 Scattering
54 # ---------------------------------------------- 1.3 Access
62 # ---------------------------------------------- 1.4 Body
63 # Statement body is provided
65 # Original iterator names
71 # =============================================== Statement 2
72 # Number of relations describing the statement
75 # ---------------------------------------------- 2.1 Domain
80 1 -1 0 0 1 -1 ## -i+N-1 >= 0
82 1 0 -1 0 1 -1 ## -j+N-1 >= 0
84 1 0 0 -1 1 -1 ## -k+N-1 >= 0
86 # ---------------------------------------------- 2.2 Scattering
98 # ---------------------------------------------- 2.3 Access
120 # ---------------------------------------------- 2.4 Body
121 # Statement body is provided
123 # Original iterator names
126 c[i][j] = c[i][j] + a[i][k] * b[k][j];