pub struct SimdKernelFunctions { /* private fields */ }Expand description
Optimized kernel function wrappers that use SIMD when available
Implementations§
Source§impl SimdKernelFunctions
impl SimdKernelFunctions
Sourcepub fn with_config(config: SimdKernelConfig) -> Self
pub fn with_config(config: SimdKernelConfig) -> Self
Create with custom configuration
Sourcepub fn linear(
&self,
x: &ArrayView1<'_, Float>,
y: &ArrayView1<'_, Float>,
) -> Result<Float>
pub fn linear( &self, x: &ArrayView1<'_, Float>, y: &ArrayView1<'_, Float>, ) -> Result<Float>
Linear kernel
Sourcepub fn rbf(
&self,
x: &ArrayView1<'_, Float>,
y: &ArrayView1<'_, Float>,
gamma: Float,
) -> Result<Float>
pub fn rbf( &self, x: &ArrayView1<'_, Float>, y: &ArrayView1<'_, Float>, gamma: Float, ) -> Result<Float>
RBF kernel
Sourcepub fn polynomial(
&self,
x: &ArrayView1<'_, Float>,
y: &ArrayView1<'_, Float>,
degree: u32,
gamma: Float,
coef0: Float,
) -> Result<Float>
pub fn polynomial( &self, x: &ArrayView1<'_, Float>, y: &ArrayView1<'_, Float>, degree: u32, gamma: Float, coef0: Float, ) -> Result<Float>
Polynomial kernel
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimdKernelFunctions
impl RefUnwindSafe for SimdKernelFunctions
impl Send for SimdKernelFunctions
impl Sync for SimdKernelFunctions
impl Unpin for SimdKernelFunctions
impl UnsafeUnpin for SimdKernelFunctions
impl UnwindSafe for SimdKernelFunctions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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