he_ring::ntt::dyn_convolution

Trait DynConvolutionAlgorithm

Source
pub trait DynConvolutionAlgorithm<R>
where R: ?Sized + RingBase,
{ // Required methods fn compute_convolution_dyn( &self, lhs: &[R::Element], rhs: &[R::Element], dst: &mut [R::Element], ring: &R, ); fn supports_ring_dyn(&self, ring: &R) -> bool; }
Expand description

Trait for algorithms that compute convolutions. This mirrors feanor_math::algorithms::convolution::ConvolutionAlgorithm, but is dyn-compatible.

Wrap a dyn DynConvolutionAlgorithm<R> in DynConvolutionAlgorithmConvolution to use it as a feanor_math::algorithms::convolution::ConvolutionAlgorithm.

Required Methods§

Source

fn compute_convolution_dyn( &self, lhs: &[R::Element], rhs: &[R::Element], dst: &mut [R::Element], ring: &R, )

Source

fn supports_ring_dyn(&self, ring: &R) -> bool

Implementors§