pub fn ipiv_parity(ipiv: &[i32]) -> i32
Calculates the parity of a swap permutation array ipiv (e.g. that you get as an output from Lapack).