spike_bitwise_not

spike_bitwise_not#

class braintools.spike_bitwise_not(x)#

Perform a bitwise NOT operation on spike tensors.

This function computes the NOT operation on a spike tensor. The NOT operation inverts the binary values in the tensor.

Parameters:

x (Tensor) – The input spike tensor.

Returns:

The result of the bitwise NOT operation applied to the input tensor.

The output tensor has the same shape as the input tensor.

Return type:

Tensor

Note

This operation is implemented using the formula: 1 - x, which is equivalent to the NOT operation for binary values.