kpermute

permuted

fun <T> List<T>.permuted(perm: IntPermutation = intPermutation(size)): List<T>(source)

Returns a read-only view of this list reordered by perm, whose domain must be [0, size). The view does not copy, so the source must not change size.

range

Returns a view of this permutation shifted onto range, which must hold exactly IntPermutation.size values. On an existing range view, replaces its range.


Returns a view of this permutation shifted onto range, which must hold exactly LongPermutation.size values. On an existing range view, replaces its range.

unpermuted

Inverse of permuted.