pub struct RFFT2dOperation<'c> { /* private fields */ }
Expand description
A rfft2d
operation. Performs RFFT2D operation on the input..
Performs a batched 2D real-valued Fast Fourier Transform over the input where the input tensor consists of real values producing complex valued output. The complex output values will be split into the output_real and output_imag tensor arguments. RFFT2D takes advantage of Hermitian symmetry to only calculate the first half of the final output axis. Imaginary values with locations (0,0), (0,W/2), (H/2,0) and (H/2,W/2) are zero.
Implementations§
source§impl<'c> RFFT2dOperation<'c>
impl<'c> RFFT2dOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> RFFT2dOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> RFFT2dOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.
pub fn output_real(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn output_imag(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn input(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<RFFT2dOperation<'c>> for Operation<'c>
impl<'c> From<RFFT2dOperation<'c>> for Operation<'c>
source§fn from(operation: RFFT2dOperation<'c>) -> Self
fn from(operation: RFFT2dOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for RFFT2dOperation<'c>
impl<'c> !Send for RFFT2dOperation<'c>
impl<'c> !Sync for RFFT2dOperation<'c>
impl<'c> Unpin for RFFT2dOperation<'c>
impl<'c> UnwindSafe for RFFT2dOperation<'c>
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