pub struct FFTConvolution<A = Global> { /* private fields */ }Expand description
§Availability
This API is marked as unstable and is only available when the unstable-enable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Implementations§
Trait Implementations§
Source§impl<A> Clone for FFTConvolution<A>
impl<A> Clone for FFTConvolution<A>
Source§impl<I, A> ConvolutionAlgorithm<I> for FFTConvolution<A>
impl<I, A> ConvolutionAlgorithm<I> for FFTConvolution<A>
Source§fn compute_convolution<S: RingStore<Type = I>, V1: VectorView<I::Element>, V2: VectorView<I::Element>>(
&self,
lhs: V1,
rhs: V2,
dst: &mut [I::Element],
ring: S,
)
fn compute_convolution<S: RingStore<Type = I>, V1: VectorView<I::Element>, V2: VectorView<I::Element>>( &self, lhs: V1, rhs: V2, dst: &mut [I::Element], ring: S, )
Source§fn supports_ring<S: RingStore<Type = I> + Copy>(&self, _ring: S) -> bool
fn supports_ring<S: RingStore<Type = I> + Copy>(&self, _ring: S) -> bool
Returns whether this convolution algorithm supports computations of
the given ring. Read more
Source§fn specialize_prepared_convolution<F>(function: F) -> Result<F::Output, F>where
F: PreparedConvolutionOperation<Self, I>,
fn specialize_prepared_convolution<F>(function: F) -> Result<F::Output, F>where
F: PreparedConvolutionOperation<Self, I>,
If this convolution implements
PreparedConvolutionAlgorithm, then
the given function is called and its result is returned. Otherwise,
Err is returned.Source§impl<'a, A> From<&'a FFTConvolution<A>> for &'a FFTConvolutionZn<A>where
A: Allocator,
impl<'a, A> From<&'a FFTConvolution<A>> for &'a FFTConvolutionZn<A>where
A: Allocator,
Source§fn from(value: &'a FFTConvolution<A>) -> Self
fn from(value: &'a FFTConvolution<A>) -> Self
Converts to this type from the input type.
Source§impl<'a, A> From<&'a FFTConvolutionZn<A>> for &'a FFTConvolution<A>where
A: Allocator,
impl<'a, A> From<&'a FFTConvolutionZn<A>> for &'a FFTConvolution<A>where
A: Allocator,
Source§fn from(value: &'a FFTConvolutionZn<A>) -> Self
fn from(value: &'a FFTConvolutionZn<A>) -> Self
Converts to this type from the input type.
Source§impl<A> From<FFTConvolution<A>> for FFTConvolutionZn<A>where
A: Allocator,
impl<A> From<FFTConvolution<A>> for FFTConvolutionZn<A>where
A: Allocator,
Source§fn from(value: FFTConvolution<A>) -> Self
fn from(value: FFTConvolution<A>) -> Self
Converts to this type from the input type.
Source§impl<A> From<FFTConvolutionZn<A>> for FFTConvolution<A>where
A: Allocator,
impl<A> From<FFTConvolutionZn<A>> for FFTConvolution<A>where
A: Allocator,
Source§fn from(value: FFTConvolutionZn<A>) -> Self
fn from(value: FFTConvolutionZn<A>) -> Self
Converts to this type from the input type.
Source§impl<I, A> PreparedConvolutionAlgorithm<I> for FFTConvolution<A>
impl<I, A> PreparedConvolutionAlgorithm<I> for FFTConvolution<A>
type PreparedConvolutionOperand = PreparedConvolutionOperand<I, A>
fn prepare_convolution_operand<S, V>( &self, val: V, ring: S, ) -> Self::PreparedConvolutionOperand
fn compute_convolution_lhs_prepared<S, V>( &self, lhs: &Self::PreparedConvolutionOperand, rhs: V, dst: &mut [I::Element], ring: S, )
fn compute_convolution_prepared<S>( &self, lhs: &Self::PreparedConvolutionOperand, rhs: &Self::PreparedConvolutionOperand, dst: &mut [I::Element], ring: S, )
fn compute_convolution_rhs_prepared<S, V>( &self, lhs: V, rhs: &Self::PreparedConvolutionOperand, dst: &mut [R::Element], ring: S, )
fn compute_convolution_inner_product_lhs_prepared<'a, S, I, V>(
&self,
values: I,
dst: &mut [R::Element],
ring: S,
)where
S: RingStore<Type = R> + Copy,
I: Iterator<Item = (&'a Self::PreparedConvolutionOperand, V)>,
V: VectorView<R::Element>,
Self: 'a,
R: 'a,
Self::PreparedConvolutionOperand: 'a,
fn compute_convolution_inner_product_prepared<'a, S, I>(
&self,
values: I,
dst: &mut [R::Element],
ring: S,
)where
S: RingStore<Type = R> + Copy,
I: Iterator<Item = (&'a Self::PreparedConvolutionOperand, &'a Self::PreparedConvolutionOperand)>,
Self::PreparedConvolutionOperand: 'a,
Self: 'a,
R: 'a,
Auto Trait Implementations§
impl<A = Global> !Freeze for FFTConvolution<A>
impl<A = Global> !RefUnwindSafe for FFTConvolution<A>
impl<A> Send for FFTConvolution<A>where
A: Send,
impl<A> Sync for FFTConvolution<A>where
A: Sync,
impl<A> Unpin for FFTConvolution<A>where
A: Unpin,
impl<A> UnwindSafe for FFTConvolution<A>where
A: UnwindSafe,
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> 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 more