bandhic.log1p#

bandhic.log1p(x, *args, **kwargs)#

Perform element-wise ‘log1p’ operation.

Parameters:
  • x (band_hic_matrix) – Input matrix.

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

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

Returns:

Result of element-wise ‘log1p’ operation.

Return type:

band_hic_matrix

See also

numpy.log1p

Examples

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