bandhic.band_hic_matrix.equal#
- band_hic_matrix.equal(self, other, *args, **kwargs)#
Perform element-wise ‘equal’ 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.equal.
**kwargs (dict) – Keyword arguments for numpy.equal.
- Returns:
Result of element-wise ‘equal’ operation.
- Return type:
See also
Examples
>>> from bandhic import band_hic_matrix >>> mat = band_hic_matrix(np.eye(3), diag_num=2, dtype=int) >>> other = mat.copy() >>> result = mat.equal(other)