[][src]Struct opensrdk_kernel_method::Kernel

pub struct Kernel<T> where
    T: ?Sized
{ /* fields omitted */ }

Implementations

impl<T> Kernel<T> where
    T: ?Sized
[src]

pub fn new(params: Vec<f64>, func: Func<T>) -> Self[src]

pub fn params(&self) -> &[f64][src]

pub fn params_mut(&mut self) -> &mut [f64][src]

pub fn func(
    &self,
    x: &T,
    x_prime: &T,
    with_grad: bool,
    rewrite_params: Option<&[f64]>
) -> Result<(f64, Option<Vec<f64>>), Box<dyn Error>>
[src]

Trait Implementations

impl<T: ?Sized> Add<Kernel<T>> for Kernel<T> where
    T: 'static, 
[src]

type Output = Self

The resulting type after applying the + operator.

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

impl<T: ?Sized> Mul<Kernel<T>> for Kernel<T> where
    T: 'static, 
[src]

type Output = Self

The resulting type after applying the * operator.

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

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

Auto Trait Implementations

impl<T> !RefUnwindSafe for Kernel<T>

impl<T: ?Sized> Unpin for Kernel<T>

impl<T> !UnwindSafe for Kernel<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, 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.