bandhic.bitwise_and#

bandhic.bitwise_and(x1, x2, *args, **kwargs)#

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

Parameters:
  • x1 (band_hic_matrix, ndarray or scalar) – First input matrix.

  • x2 (band_hic_matrix, ndarray or scalar) – Second input for the operation.

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

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

Returns:

Result of element-wise ‘bitwise_and’ operation.

Return type:

band_hic_matrix

Examples

>>> import bandhic as bh
>>> x1 = band_hic_matrix(np.eye(3), diag_num=2, dtype=int)
>>> x2 = x1.copy()
>>> result = bh.bitwise_and(x1, x2)