triuix#
- pybrops.core.util.array.triuix(n, k)[source]#
Generate lists containing indices for indexing upper triangle arrays including 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