pub fn lu_pivots_to_permutation(
pivots: &[i32],
batch: usize,
k: usize,
size: usize,
) -> Vec<i32>Expand description
Converts the pivots of lu (k row swaps per batch element) into
permutations of size elements: starting from the identity, swaps
element i with element pivots[i] for each i in order (as
lax.linalg.lu_pivots_to_permutation). Pivots out of range leave the
permutation unchanged at that step.
ยงPanics
Panics if pivots does not have batch * k elements.