secure_inner_join.utils module¶
Utilities
- secure_inner_join.utils.randomize_ndarray(arr)[source]¶
Randomize all elements in a numpy array with ciphertexts.
This function calls ‘RandomizableCiphertext.randomize’ ‘arr.size’ times, as expected. Note that this contrasts with the ‘arr.size+1’ calls made by ‘np.vectorize(lambda _: _.randomize())(arr)’.
- Parameters:
arr (
ndarray
[Any
,dtype
[object_
]]) – array to be randomized- Return type:
None