pub struct KernelChannels<const K: usize> {
pub value: f64,
pub gradient: [f64; K],
pub hessian: [[f64; K]; K],
pub third: Vec<([f64; K], [[f64; K]; K])>,
pub fourth: Vec<([f64; K], [f64; K], [[f64; K]; K])>,
}Expand description
One row’s worth of hand-written kernel outputs, as claimed by a
RowKernel implementation, packaged for verification against the
tower truth. Plain data (no trait coupling) so any kernel — whatever
its visibility — can be audited from its own test module.
Fields§
§value: f64Claimed (nll, ∇, H) from row_kernel.
gradient: [f64; K]Claimed gradient.
hessian: [[f64; K]; K]Claimed Hessian.
third: Vec<([f64; K], [[f64; K]; K])>Claimed row_third_contracted(dir) outputs as (dir, claim) pairs.
fourth: Vec<([f64; K], [f64; K], [[f64; K]; K])>Claimed row_fourth_contracted(u, v) outputs as (u, v, claim).
Auto Trait Implementations§
impl<const K: usize> Freeze for KernelChannels<K>
impl<const K: usize> RefUnwindSafe for KernelChannels<K>
impl<const K: usize> Send for KernelChannels<K>
impl<const K: usize> Sync for KernelChannels<K>
impl<const K: usize> Unpin for KernelChannels<K>
impl<const K: usize> UnsafeUnpin for KernelChannels<K>
impl<const K: usize> UnwindSafe for KernelChannels<K>
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
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.