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

Function reverse_permut_np

utils/utils_zigzag.py:136–141  ·  view source on GitHub ↗
(permutation)

Source from the content-addressed store, hash-verified

134
135
136def reverse_permut_np(permutation):
137 n = len(permutation)
138 reverse = np.array([0] * n)
139 for i in range(n):
140 reverse[permutation[i]] = i
141 return reverse
142
143
144def zigzag_path(N):

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected