uf3.data.composition.szudzik_pair

szudzik_pair(pairs: numpy.ndarray) numpy.ndarray[source]

Numpy implementation of a pairing function by Matthew Szudzik

Parameters

pairs (np.ndarray) – n x 2 integer array of pairs.

Returns

n x 1 integer array of hashes.

Return type

hash_list (np.ndarray)