bandhic.band_hic_matrix.todense#
- band_hic_matrix.todense()[source]#
Convert the band matrix to a dense format.
- Returns:
The dense (square) matrix. Masked if mask is set.
- Return type:
ndarray or MaskedArray
Examples
>>> import bandhic as bh >>> mat = bh.band_hic_matrix(np.eye(3), diag_num=2) >>> dense = mat.todense() >>> dense.shape (3, 3)