bandhic.band_hic_matrix.logical_xor#

band_hic_matrix.logical_xor(self, other, *args, **kwargs)#

Perform element-wise ‘logical_xor’ operation with two inputs.

Parameters:
  • self (band_hic_matrix) – First input matrix.

  • other (band_hic_matrix or array-like) – Second input for the operation.

  • *args (tuple) – Additional positional arguments for numpy.logical_xor.

  • **kwargs (dict) – Keyword arguments for numpy.logical_xor.

Returns:

Result of element-wise ‘logical_xor’ operation.

Return type:

band_hic_matrix

Examples

>>> from bandhic import band_hic_matrix
>>> mat = band_hic_matrix(np.eye(3), diag_num=2, dtype=int)
>>> other = mat.copy()
>>> result = mat.logical_xor(other)