pub struct CpuBackend { /* private fields */ }Expand description
rustfft-based CPU backend with plans cached for low- and high-resolution grids.
Implementations§
Trait Implementations§
Source§impl Backend for CpuBackend
impl Backend for CpuBackend
fn capabilities(&self) -> BackendCapabilities
fn resident_backend(&self) -> Option<&dyn ResidentBackend>
fn fft2( &self, values: &mut [Complex64], shape: (usize, usize), direction: FftDirection, column_scratch: &mut [Complex64], ) -> Result<()>
Source§impl Clone for CpuBackend
impl Clone for CpuBackend
Source§fn clone(&self) -> CpuBackend
fn clone(&self) -> CpuBackend
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 ResidentBackend for CpuBackend
impl ResidentBackend for CpuBackend
fn allocate_complex(&self, len: usize) -> Result<Box<dyn ComplexBuffer>>
fn allocate_real(&self, len: usize) -> Result<Box<dyn RealBuffer>>
fn upload_complex( &self, destination: &mut dyn ComplexBuffer, source: &[Complex64], ) -> Result<()>
fn download_complex( &self, source: &dyn ComplexBuffer, destination: &mut [Complex64], ) -> Result<()>
fn upload_real( &self, destination: &mut dyn RealBuffer, source: &[f64], ) -> Result<()>
fn download_real( &self, source: &dyn RealBuffer, destination: &mut [f64], ) -> Result<()>
fn fft2_resident( &self, values: &mut dyn ComplexBuffer, shape: (usize, usize), direction: FftDirection, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for CpuBackend
impl !RefUnwindSafe for CpuBackend
impl Send for CpuBackend
impl Sync for CpuBackend
impl Unpin for CpuBackend
impl UnsafeUnpin for CpuBackend
impl !UnwindSafe for CpuBackend
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