bandhic.ones#
- bandhic.ones(shape, diag_num=1, dtype=<class 'numpy.float64'>)[source]#
Create a band_hic_matrix object filled with ones.
- Parameters:
shape (tuple of int) – Matrix shape as (bins, bins).
diag_num (int, optional) – Number of diagonals to consider. Default is 1.
dtype (data-type, optional) – The data type of the matrix. Default is np.float64.
- Returns:
A band_hic_matrix object with all entries filled with ones.
- Return type:
Examples
>>> import bandhic as bh >>> mat = bh.ones((5, 5), diag_num=3) >>> print(mat) band_hic_matrix(shape=(5, 5), diag_num=3, dtype=<class 'numpy.float64'>)