spike_bitwise_iand

spike_bitwise_iand#

class braintools.spike_bitwise_iand(x, y)#

Perform a bitwise IAND (Inverse AND) operation on spike tensors.

This function computes the Inverse AND (IAND) operation between two spike tensors. IAND is defined as (NOT x) AND y.

Parameters:
  • x (Array | ndarray | bool | number | bool | int | float | complex | Quantity) – The first input spike tensor.

  • y (Array | ndarray | bool | number | bool | int | float | complex | Quantity) – The second input spike tensor.

Returns:

The result of the bitwise IAND operation applied to the input tensors.

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

Return type:

Array | ndarray | bool | number | bool | int | float | complex | Quantity

Note

This operation is implemented using the formula: (1 - x) * y, which is equivalent to the IAND operation for binary values.