Skip to main content

lu_pivots_to_permutation

Function lu_pivots_to_permutation 

Source
pub fn lu_pivots_to_permutation<B: Backend>(
    pivots: &Array<B, i32>,
    permutation_size: usize,
) -> Array<B, i32>
Expand description

Converts the pivots of lu to a permutation of permutation_size elements, as lax.linalg.lu_pivots_to_permutation.

ยงPanics

Panics if pivots is a scalar or has more pivots than permutation_size.