Type Alias linfa_kernel::KernelView

source ·
pub type KernelView<'a, F> = KernelBase<ArrayView2<'a, F>, CsMatView<'a, F>>;
Expand description

Type definition of Kernel that borrows its inner matrix

Aliased Type§

struct KernelView<'a, F> {
    pub inner: KernelInner<ArrayBase<ViewRepr<&'a F>, Dim<[usize; 2]>>, CsMatBase<F, usize, &'a [usize], &'a [usize], &'a [F]>>,
    pub method: KernelMethod<<ArrayBase<ViewRepr<&'a F>, Dim<[usize; 2]>> as Inner>::Elem>,
}

Fields§

§inner: KernelInner<ArrayBase<ViewRepr<&'a F>, Dim<[usize; 2]>>, CsMatBase<F, usize, &'a [usize], &'a [usize], &'a [F]>>§method: KernelMethod<<ArrayBase<ViewRepr<&'a F>, Dim<[usize; 2]>> as Inner>::Elem>

The inner product that will be used by the kernel

Implementations§

source§

impl<'a, F: Float> KernelView<'a, F>

source

pub fn to_owned(&self) -> Kernel<F>