MCPcopy Create free account
hub / github.com/CompVis/zigma / gilbert_zigzag_path

Function gilbert_zigzag_path

utils/utils_gilbert.py:116–123  ·  view source on GitHub ↗
(N)

Source from the content-addressed store, hash-verified

114
115
116def gilbert_zigzag_path(N):
117 width = height = N
118 order_index = np.zeros((width, height), dtype=int)
119 for x in range(width):
120 for y in range(height):
121 idx = gilbert_xy2d(x, y, width, height)
122 order_index[x, y] = idx
123 print(order_index)
124
125
126if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

gilbert_xy2dFunction · 0.70

Tested by

no test coverage detected