(N)
| 114 | |
| 115 | |
| 116 | def 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 | |
| 126 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected