Skip to main content

C2RPlan

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§