pub struct Fft3dWorkspaceF32 {Show 15 fields
nx: usize,
ny: usize,
nz: usize,
n_total: usize,
fft_x: Arc<dyn Fft<f32>>,
fft_y: Arc<dyn Fft<f32>>,
fft_z: Arc<dyn Fft<f32>>,
ifft_x: Arc<dyn Fft<f32>>,
ifft_y: Arc<dyn Fft<f32>>,
ifft_z: Arc<dyn Fft<f32>>,
scratch_x: Vec<Complex32>,
scratch_y: Vec<Complex32>,
scratch_z: Vec<Complex32>,
buffer_y: Vec<Complex32>,
buffer_z: Vec<Complex32>,
}Expand description
FFT workspace using f32 for better WASM performance Single precision halves memory bandwidth and is faster on most hardware
Fields§
§nx: usize§ny: usize§nz: usize§n_total: usize§fft_x: Arc<dyn Fft<f32>>§fft_y: Arc<dyn Fft<f32>>§fft_z: Arc<dyn Fft<f32>>§ifft_x: Arc<dyn Fft<f32>>§ifft_y: Arc<dyn Fft<f32>>§ifft_z: Arc<dyn Fft<f32>>§scratch_x: Vec<Complex32>§scratch_y: Vec<Complex32>§scratch_z: Vec<Complex32>§buffer_y: Vec<Complex32>§buffer_z: Vec<Complex32>Implementations§
Auto Trait Implementations§
impl Freeze for Fft3dWorkspaceF32
impl !RefUnwindSafe for Fft3dWorkspaceF32
impl Send for Fft3dWorkspaceF32
impl Sync for Fft3dWorkspaceF32
impl Unpin for Fft3dWorkspaceF32
impl UnsafeUnpin for Fft3dWorkspaceF32
impl !UnwindSafe for Fft3dWorkspaceF32
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
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 more