pub trait R2CPlan: Sized {
type Real: AlignedAllocable;
type Complex: AlignedAllocable;
// Required methods
fn new(
shape: &[usize],
in_: &mut [Self::Real],
out: &mut [Self::Complex],
flag: Flag
) -> Result<Self>;
fn r2c(
&mut self,
in_: &mut [Self::Real],
out: &mut [Self::Complex]
) -> Result<()>;
// Provided method
fn aligned(shape: &[usize], flag: Flag) -> Result<Self> { ... }
}
Expand description
Trait for the plan of Real-to-Complex transformation