pub enum HessianMaterialization {
Unavailable,
RepeatedHvp,
BatchedHvp,
Explicit,
}Expand description
How (and whether) a HessianOperator can produce a dense materialized
Hessian. Reported by HessianOperator::materialization() so a
trust-region or ARC solver can decide between calling
materialize_dense once and falling back to repeated Hessian-vector
products through apply_into.
Variants§
Automatic dense materialization is not part of the operator’s work
model. Explicit diagnostic callers may still probe the basis through
HessianOperator::materialize_dense, but solvers stay matrix-free.
RepeatedHvp
Materialization is possible but expensive: it costs one
apply_into per column. Solvers should prefer matrix-free
iterations unless the dimension is small.
BatchedHvp
Materialization can use a batched/multi-RHS path that is faster
than n separate apply_into calls (e.g. tangent propagation
across all basis vectors at once).
Explicit
The operator already holds a dense Hessian (or can produce one
without extra Hv probes). materialize_dense() is essentially
free.
Implementations§
Source§impl HessianMaterialization
impl HessianMaterialization
Sourcepub fn is_available(self) -> bool
pub fn is_available(self) -> bool
True when materialize_dense is expected to succeed and produce
a usable result without significant additional work beyond what
any other access would cost.
Trait Implementations§
Source§impl Clone for HessianMaterialization
impl Clone for HessianMaterialization
Source§fn clone(&self) -> HessianMaterialization
fn clone(&self) -> HessianMaterialization
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for HessianMaterialization
Source§impl Debug for HessianMaterialization
impl Debug for HessianMaterialization
impl Eq for HessianMaterialization
Source§impl PartialEq for HessianMaterialization
impl PartialEq for HessianMaterialization
impl StructuralPartialEq for HessianMaterialization
Auto Trait Implementations§
impl Freeze for HessianMaterialization
impl RefUnwindSafe for HessianMaterialization
impl Send for HessianMaterialization
impl Sync for HessianMaterialization
impl Unpin for HessianMaterialization
impl UnsafeUnpin for HessianMaterialization
impl UnwindSafe for HessianMaterialization
Blanket Implementations§
impl<T> Boilerplate for T
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
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,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar 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.