Closed Sword-Smith closed 10 months ago
NTT needs to swap elements in a list, so we should have the optimal list swap snippet. It should probably just use the function signature that Rust uses
swap
pub fn swap(&mut self, a: usize, b: usize)
https://doc.rust-lang.org/std/vec/struct.Vec.html#method.swap
NTT needs to swap elements in a list, so we should have the optimal list
swap
snippet. It should probably just use the function signature that Rust useshttps://doc.rust-lang.org/std/vec/struct.Vec.html#method.swap