pub struct FftShiftDescriptor {
pub n: i32,
pub batch: i32,
pub inverse: bool,
pub element: ElementKind,
}Expand description
Descriptor for an fftshift / ifftshift op.
Fields§
§n: i32Length of the last axis (the axis being shifted). For 1-D
fftshift [batch, n] this is the size of the shifted axis.
batch: i32Number of independent rows. Each row is shifted independently.
inverse: booltrue selects ifftshift (cyclic offset n/2), false
selects fftshift (cyclic offset (n+1)/2). Identical for
even n; the two diverge for odd n and ifftshift is then
the true inverse of fftshift.
element: ElementKindElement type. Any Element; the kernel dispatches on
size_of::<T>() (4 / 8 / 16 bytes).
Trait Implementations§
Source§impl Clone for FftShiftDescriptor
impl Clone for FftShiftDescriptor
Source§fn clone(&self) -> FftShiftDescriptor
fn clone(&self) -> FftShiftDescriptor
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 moreimpl Copy for FftShiftDescriptor
Auto Trait Implementations§
impl Freeze for FftShiftDescriptor
impl RefUnwindSafe for FftShiftDescriptor
impl Send for FftShiftDescriptor
impl Sync for FftShiftDescriptor
impl Unpin for FftShiftDescriptor
impl UnsafeUnpin for FftShiftDescriptor
impl UnwindSafe for FftShiftDescriptor
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