triudix#
- pybrops.core.util.array.triudix(n, k)[source]#
Generate lists containing indices for indexing upper triangle arrays excluding elements along the diagonal.
- Parameters:
n (int) – Length of the array along each dimension.
k (int) – Number of dimensions of the array.
- Yields:
out (list) – List containing indices for indexing the square array.
- Return type:
Generator