bandhic.full_like#

bandhic.full_like(other, fill_value, dtype=None)[source]#

Create a band_hic_matrix object matching another matrix, filled with a specified value.

Parameters:
  • other (band_hic_matrix) – Reference matrix.

  • fill_value (scalar) – Value to fill the matrix.

Returns:

A band_hic_matrix object matching other, filled with fill_value.

Return type:

band_hic_matrix

Examples

>>> mat_ref = zeros((4, 4), diag_num=2)
>>> mat = full_like(mat_ref, fill_value=9)
>>> isinstance(mat, band_hic_matrix)
True