[−][src]Struct opensrdk_kernel_method::Kernel
Implementations
impl<T> Kernel<T> where
T: ?Sized, [src]
T: ?Sized,
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]
&self,
x: &T,
x_prime: &T,
with_grad: bool,
rewrite_params: Option<&[f64]>
) -> Result<(f64, Option<Vec<f64>>), Box<dyn Error>>
Trait Implementations
impl<T: ?Sized> Add<Kernel<T>> for Kernel<T> where
T: 'static, [src]
T: 'static,
type Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: Kernel<T>) -> Self::Output[src]
impl<T> Debug for Kernel<T> where
T: ?Sized, [src]
T: ?Sized,
impl<T: ?Sized> Mul<Kernel<T>> for Kernel<T> where
T: 'static, [src]
T: 'static,
type Output = Self
The resulting type after applying the * operator.
fn mul(self, rhs: Kernel<T>) -> Self::Output[src]
impl<T> Send for Kernel<T> where
T: ?Sized, [src]
T: ?Sized,
impl<T> Sync for Kernel<T> where
T: ?Sized, [src]
T: ?Sized,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,