pub struct FftnOptions {
pub lengths: Option<Vec<i32>>,
pub axes: Axes,
}Expand description
Options shared by the n-dimensional FFT and real FFT transforms.
lengths and axes are correlated: when lengths are provided, there must be exactly one
length per selected axis. An all-axis transform may provide one length per input dimension.
A partial transform must set both fields, for example:
let options = FftnOptions {
lengths: Some(vec![8, 16]),
axes: Axes::from([-2, -1]),
};Axis-only selection may use FftnOptions { axes: (-1).into(), ..Default::default() }.
Fields§
§lengths: Option<Vec<i32>>Sizes of the transformed axes, or the input sizes when omitted.
axes: AxesAxes to transform.
Trait Implementations§
Source§impl Clone for FftnOptions
impl Clone for FftnOptions
Source§fn clone(&self) -> FftnOptions
fn clone(&self) -> FftnOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FftnOptions
impl Debug for FftnOptions
Source§impl Default for FftnOptions
impl Default for FftnOptions
Source§fn default() -> FftnOptions
fn default() -> FftnOptions
Returns the “default value” for a type. Read more
impl Eq for FftnOptions
Source§impl PartialEq for FftnOptions
impl PartialEq for FftnOptions
Source§fn eq(&self, other: &FftnOptions) -> bool
fn eq(&self, other: &FftnOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FftnOptions
Auto Trait Implementations§
impl Freeze for FftnOptions
impl RefUnwindSafe for FftnOptions
impl Send for FftnOptions
impl Sync for FftnOptions
impl Unpin for FftnOptions
impl UnsafeUnpin for FftnOptions
impl UnwindSafe for FftnOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Convert into an
Option.