pub enum Derivative {
Analytic,
Unavailable,
}Expand description
Whether an analytic derivative is available for a given order.
Variants§
Analytic
Exact analytic derivative implemented and available.
No analytic derivative; must be approximated or skipped.
Trait Implementations§
Source§impl Clone for Derivative
impl Clone for Derivative
Source§fn clone(&self) -> Derivative
fn clone(&self) -> Derivative
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Derivative
impl Debug for Derivative
Source§impl From<Derivative> for DeclaredHessianForm
Bridge for the partial migration from the legacy Derivative-only
declaration to the richer DeclaredHessianForm used by the
outer-optimizer planner. Family call sites that still produce
Derivative (the simple available/unavailable bit) lift through
this From impl without each rewriting its capability probe:
Analytic defaults to Either so the seed loop inspects the
realized seed eval and locks the route at runtime, mirroring the
historical seed-eval-branch behavior; Unavailable projects to
Unavailable. New call sites that already know whether the
Hessian is materialized as Dense or comes through an Operator
can construct the richer variant directly.
impl From<Derivative> for DeclaredHessianForm
Bridge for the partial migration from the legacy Derivative-only
declaration to the richer DeclaredHessianForm used by the
outer-optimizer planner. Family call sites that still produce
Derivative (the simple available/unavailable bit) lift through
this From impl without each rewriting its capability probe:
Analytic defaults to Either so the seed loop inspects the
realized seed eval and locks the route at runtime, mirroring the
historical seed-eval-branch behavior; Unavailable projects to
Unavailable. New call sites that already know whether the
Hessian is materialized as Dense or comes through an Operator
can construct the richer variant directly.
Source§fn from(d: Derivative) -> Self
fn from(d: Derivative) -> Self
Source§impl PartialEq for Derivative
impl PartialEq for Derivative
Source§fn eq(&self, other: &Derivative) -> bool
fn eq(&self, other: &Derivative) -> bool
self and other values to be equal, and is used by ==.impl Copy for Derivative
impl Eq for Derivative
impl StructuralPartialEq for Derivative
Auto Trait Implementations§
impl Freeze for Derivative
impl RefUnwindSafe for Derivative
impl Send for Derivative
impl Sync for Derivative
impl Unpin for Derivative
impl UnsafeUnpin for Derivative
impl UnwindSafe for Derivative
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.