bandhic.true_divide#

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

Perform element-wise ‘true_divide’ 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.true_divide.

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

Returns:

Result of element-wise ‘true_divide’ 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.true_divide(x1, x2)