bandhic.square#

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

Perform element-wise ‘square’ operation.

Parameters:
  • x (band_hic_matrix) – Input matrix.

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

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

Returns:

Result of element-wise ‘square’ operation.

Return type:

band_hic_matrix

See also

numpy.square

Examples

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