gneiss.util.band_diagonal

gneiss.util.band_diagonal(n, b)[source]

Creates band table with dense diagonal, sparse corners.

Parameters:
  • n (int) – Number of features
  • b (int) – Length of band
Returns:

Table of

Return type:

np.array