Trait fftw::plan::C2RPlan

source ·
pub trait C2RPlan: Sized {
    type Real: AlignedAllocable;
    type Complex: AlignedAllocable;

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

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

Trait for the plan of Complex-to-Real transformation

Required Associated Types§

Required Methods§

source

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

Create new plan

source

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

Execute complex-to-real transform

Provided Methods§

source

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

Create new plan with aligned vector

Implementors§