Trait fftw::plan::C2CPlan

source ·
pub trait C2CPlan: Sized {
    type Complex: AlignedAllocable;

    // Required methods
    fn new(
        shape: &[usize],
        in_: &mut [Self::Complex],
        out: &mut [Self::Complex],
        sign: Sign,
        flag: Flag
    ) -> Result<Self>;
    fn c2c(
        &mut self,
        in_: &mut [Self::Complex],
        out: &mut [Self::Complex]
    ) -> Result<()>;

    // Provided method
    fn aligned(shape: &[usize], sign: Sign, flag: Flag) -> Result<Self> { ... }
}
Expand description

Trait for the plan of Complex-to-Complex transformation

Required Associated Types§

Required Methods§

source

fn new( shape: &[usize], in_: &mut [Self::Complex], out: &mut [Self::Complex], sign: Sign, flag: Flag ) -> Result<Self>

Create new plan

source

fn c2c( &mut self, in_: &mut [Self::Complex], out: &mut [Self::Complex] ) -> Result<()>

Execute complex-to-complex transform

Provided Methods§

source

fn aligned(shape: &[usize], sign: Sign, flag: Flag) -> Result<Self>

Create new plan with aligned vector

Implementors§