bandhic.eye_like#
- bandhic.eye_like(other, dtype=None)[source]#
Create a band_hic_matrix object matching another matrix, filled as an identity matrix.
- Parameters:
other (band_hic_matrix) – Reference matrix.
- Returns:
A band_hic_matrix object matching other, filled as an identity matrix.
- Return type:
Examples
>>> mat_ref = zeros((4, 4), diag_num=2) >>> mat = eye_like(mat_ref) >>> isinstance(mat, band_hic_matrix) True