Lines Matching refs:z
55 int i, z, j, matchflag; in dyn_prog() local
90 for (z = 1; z < ymax - n + 1; z++) { in dyn_prog()
91 fz = f (x[0], z); in dyn_prog()
95 fz += g (oldy[j], z, oldx[j], x[0]); in dyn_prog()
96 if (fz < F[0][z - 1]) { in dyn_prog()
97 F[0][z] = fz; in dyn_prog()
98 ymin[0][z] = z; in dyn_prog()
101 F[0][z] = F[0][z - 1]; in dyn_prog()
102 ymin[0][z] = ymin[0][z - 1]; in dyn_prog()
126 for (z = i + 1; z < ymax - n + i + 1; z++) { in dyn_prog()
127 fz = f (x[i], z) + F[i - 1][z - 1]; in dyn_prog()
130 fz += g (oldy[j], z, oldx[j], x[i]); in dyn_prog()
131 if (fz < F[i][z - 1]) { in dyn_prog()
132 F[i][z] = fz; in dyn_prog()
133 ymin[i][z] = z; in dyn_prog()
136 F[i][z] = F[i][z - 1]; in dyn_prog()
137 ymin[i][z] = ymin[i][z - 1]; in dyn_prog()