pub struct GroupDft { /* private fields */ }Expand description
DFT on G = Z_{a_1} × … × Z_{a_r} (row-major, last axis fastest):
X̂(ξ) = Σ_y x(y) Π_i ω_{a_i}^{ξ_i y_i}, with ω_a = Fp::root_of_unity(a).
Implementations§
Source§impl GroupDft
impl GroupDft
Sourcepub fn with_threads(self, threads: usize) -> Self
pub fn with_threads(self, threads: usize) -> Self
Set the number of threads (0 = automatic, the default).
pub fn dims(&self) -> &[usize]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn forward(&self, x: &[Fp]) -> Vec<Fp>
pub fn inverse(&self, x: &[Fp]) -> Vec<Fp>
pub fn forward_in_place(&self, x: &mut [Fp])
pub fn inverse_in_place(&self, x: &mut [Fp])
Trait Implementations§
Auto Trait Implementations§
impl Forget for GroupDft
impl Freeze for GroupDft
impl Move for GroupDft
impl RefUnwindSafe for GroupDft
impl Send for GroupDft
impl Sync for GroupDft
impl Unpin for GroupDft
impl UnsafeUnpin for GroupDft
impl UnwindSafe for GroupDft
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more