Struct opensrdk_kernel_method::instant::InstantKernel[][src]

pub struct InstantKernel<'a, T> where
    T: Value
{ /* fields omitted */ }

Implementations

impl<'a, T> InstantKernel<'a, T> where
    T: Value
[src]

pub fn new(
    params_len: usize,
    value: &'a (dyn Fn(&[f64], &T, &T) -> Result<f64, KernelError> + Send + Sync),
    value_with_grad: &'a (dyn Fn(&[f64], &T, &T) -> Result<(f64, Vec<f64>), KernelError> + Send + Sync)
) -> Self
[src]

Trait Implementations

impl<'a, T, R> Add<R> for InstantKernel<'a, T> where
    T: Value,
    R: Kernel<T>, 
[src]

type Output = KernelAdd<Self, R, T>

The resulting type after applying the + operator.

impl<'a, T: Clone> Clone for InstantKernel<'a, T> where
    T: Value
[src]

impl<'a, T> Debug for InstantKernel<'a, T> where
    T: Value
[src]

impl<'a, T> Kernel<T> for InstantKernel<'a, T> where
    T: Value
[src]

impl<'a, T, R> Mul<R> for InstantKernel<'a, T> where
    T: Value,
    R: Kernel<T>, 
[src]

type Output = KernelMul<Self, R, T>

The resulting type after applying the * operator.

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for InstantKernel<'a, T>

impl<'a, T> Send for InstantKernel<'a, T>

impl<'a, T> Sync for InstantKernel<'a, T>

impl<'a, T> Unpin for InstantKernel<'a, T>

impl<'a, T> !UnwindSafe for InstantKernel<'a, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.