bandhic.zeros_like#

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

Create a band_hic_matrix object matching another matrix, filled with zeros.

Parameters:

other (band_hic_matrix) – Reference matrix.

Returns:

A band_hic_matrix object matching other, filled with zeros.

Return type:

band_hic_matrix

Examples

>>> mat_ref = zeros((4, 4), diag_num=2)
>>> mat = zeros_like(mat_ref)
>>> isinstance(mat, band_hic_matrix)
True