You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
227 B

pub enum Direction {
Forward,
Backward,
}
pub fn transform(data: &mut [f64], _: Direction) {
let n = data.len();
if n < 2 || n & (n - 1) != 0 {
panic!("the data size should be a power of two");
}
}