parity
- typhon.math.array.parity(v)[source]
Vectorised parity-checking.
For any ndarray with an nd.integer dtype, return an equally shaped array with the bit parity for each element.
- Parameters:
v (numpy.ndarray) – Array of integer dtype
- Returns:
ndarray with uint8 dtype with the parity for each value in v