spike_bitwise_ixor#
- class braintools.spike_bitwise_ixor(x, y)#
Perform a bitwise IXOR (Inverse XOR) operation on spike tensors.
This function computes the Inverse XOR (IXOR) operation between two spike tensors. IXOR is defined as (x AND NOT y) OR (NOT x AND y).
- Parameters:
x (Tensor) – The first input spike tensor.
y (Tensor) – The second input spike tensor.
- Returns:
- The result of the bitwise IXOR operation applied to the input tensors.
The output tensor has the same shape as the input tensors.
- Return type:
Tensor
Note
This operation is implemented using the formula: x * (1 - y) + (1 - x) * y, which is equivalent to the IXOR operation for binary values.