bandhic.band_hic_matrix.astype#

band_hic_matrix.astype(dtype, copy=False)[source]#

Cast data to new dtype.

Parameters:
  • type (data-type) – Target dtype.

  • copy (bool) – If True, the operation is performed in place. Default is False.

  • dtype (type)

Return type:

band_hic_matrix

Examples

>>> import bandhic as bh
>>> mat = bh.ones((3,3), diag_num=2)
>>> mat = mat.astype(np.float32)