pub struct FixedRuntimeJet<S, const K: usize> { /* private fields */ }Expand description
Adapter that presents any const-generic JetScalar<K> through the
runtime-dimension interface. It is used by derivative oracles so the same
row program can be instantiated at a fixed tower and at a dynamic packed
scalar; production code unwraps the inner fixed tower after evaluation.
Implementations§
Source§impl<S, const K: usize> FixedRuntimeJet<S, K>
impl<S, const K: usize> FixedRuntimeJet<S, K>
Sourcepub fn into_inner(self) -> S
pub fn into_inner(self) -> S
Recover the wrapped const-generic scalar.
Trait Implementations§
Source§impl<S: Clone, const K: usize> Clone for FixedRuntimeJet<S, K>
impl<S: Clone, const K: usize> Clone for FixedRuntimeJet<S, K>
Source§fn clone(&self) -> FixedRuntimeJet<S, K>
fn clone(&self) -> FixedRuntimeJet<S, K>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<S: Copy, const K: usize> Copy for FixedRuntimeJet<S, K>
Source§impl<'arena, S: JetScalar<K>, const K: usize> RuntimeJetScalar<'arena> for FixedRuntimeJet<S, K>
impl<'arena, S: JetScalar<K>, const K: usize> RuntimeJetScalar<'arena> for FixedRuntimeJet<S, K>
Source§type Workspace = ()
type Workspace = ()
Storage arena used by runtime-backed scalars. Fixed derivative oracles
use the unit type because their storage is inline.
Source§fn constant(c: f64, dimension: usize, (): &'arena Self::Workspace) -> Self
fn constant(c: f64, dimension: usize, (): &'arena Self::Workspace) -> Self
A constant in a
dimension-primary algebra.Source§fn variable(
x: f64,
axis: usize,
dimension: usize,
(): &'arena Self::Workspace,
) -> Self
fn variable( x: f64, axis: usize, dimension: usize, (): &'arena Self::Workspace, ) -> Self
A seeded variable in a
dimension-primary algebra.Source§fn compose_unary(&self, d: [f64; 5]) -> Self
fn compose_unary(&self, d: [f64; 5]) -> Self
Exact unary composition from the certified derivative stack.
Auto Trait Implementations§
impl<S, const K: usize> Freeze for FixedRuntimeJet<S, K>where
S: Freeze,
impl<S, const K: usize> RefUnwindSafe for FixedRuntimeJet<S, K>where
S: RefUnwindSafe,
impl<S, const K: usize> Send for FixedRuntimeJet<S, K>where
S: Send,
impl<S, const K: usize> Sync for FixedRuntimeJet<S, K>where
S: Sync,
impl<S, const K: usize> Unpin for FixedRuntimeJet<S, K>where
S: Unpin,
impl<S, const K: usize> UnsafeUnpin for FixedRuntimeJet<S, K>where
S: UnsafeUnpin,
impl<S, const K: usize> UnwindSafe for FixedRuntimeJet<S, K>where
S: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.