bandhic.band_hic_matrix.__iter__#

band_hic_matrix.__iter__()[source]#

Iterate over diagonals of the matrix.

Yields:

ndarray – Values of each diagonal.

Return type:

Iterator[ndarray]

Examples

>>> import bandhic as bh
>>> mat = bh.ones((3,3), diag_num=2)
>>> for band in mat:
...     print(band)
[1. 1. 1.]
[1. 1.]