Creation Functions#

These functions create BandHiC matrices with specific properties.

bandhic.ones(shape[, diag_num, dtype])

Create a band_hic_matrix object filled with ones.

bandhic.zeros(shape[, diag_num, dtype])

Create a band_hic_matrix object filled with zeros.

bandhic.eye(shape[, diag_num, dtype])

Create a band_hic_matrix object filled as an identity matrix.

bandhic.full(shape, fill_value[, diag_num, ...])

Create a band_hic_matrix object filled with a specified value.

bandhic.ones_like(other[, dtype])

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

bandhic.zeros_like(other[, dtype])

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

bandhic.eye_like(other[, dtype])

Create a band_hic_matrix object matching another matrix, filled as an identity matrix.

bandhic.full_like(other, fill_value[, dtype])

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