fn flip3(src: &[f32], dims: [usize; 3], flip: [bool; 3]) -> Vec<f32>
Mirror a C-order patch along the flagged axes (an involution).