Struct argmin_core::NoOperator
source · Implementations
Trait Implementations
sourceimpl<T, U, H> ArgminOperator for NoOperator<T, U, H>where
T: Clone + Default,
U: Clone + Default,
H: Clone + Default,
impl<T, U, H> ArgminOperator for NoOperator<T, U, H>where
T: Clone + Default,
U: Clone + Default,
H: Clone + Default,
type Parameters = T
type Parameters = T
Type of the parameter vector
type OperatorOutput = U
type OperatorOutput = U
Output of the operator. Most solvers expect
f64
.type Hessian = H
type Hessian = H
Type of Hessian
sourcefn apply(&self, _p: &Self::Parameters) -> Result<Self::OperatorOutput, Error>
fn apply(&self, _p: &Self::Parameters) -> Result<Self::OperatorOutput, Error>
Applies the operator/cost function to parameters
sourcefn gradient(&self, _p: &Self::Parameters) -> Result<Self::Parameters, Error>
fn gradient(&self, _p: &Self::Parameters) -> Result<Self::Parameters, Error>
Computes the gradient at the given parameters
sourcefn hessian(&self, _p: &Self::Parameters) -> Result<Self::Hessian, Error>
fn hessian(&self, _p: &Self::Parameters) -> Result<Self::Hessian, Error>
Computes the hessian at the given parameters
sourcefn modify(
&mut self,
_p: &Self::Parameters,
_t: f64
) -> Result<Self::Parameters, Error>
fn modify(
&mut self,
_p: &Self::Parameters,
_t: f64
) -> Result<Self::Parameters, Error>
Modifies a parameter vector. Comes with a variable that indicates the “degree” of the
modification. Read more
sourcefn box_clone(
&self
) -> Box<dyn ArgminOperator<Parameters = Self::Parameters, OperatorOutput = Self::OperatorOutput, Hessian = Self::Hessian>>
fn box_clone(
&self
) -> Box<dyn ArgminOperator<Parameters = Self::Parameters, OperatorOutput = Self::OperatorOutput, Hessian = Self::Hessian>>
Allows to clone the boxed trait object.
Auto Trait Implementations
impl<T, U, H> RefUnwindSafe for NoOperator<T, U, H>where
H: RefUnwindSafe,
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U, H> !Send for NoOperator<T, U, H>
impl<T, U, H> !Sync for NoOperator<T, U, H>
impl<T, U, H> Unpin for NoOperator<T, U, H>
impl<T, U, H> UnwindSafe for NoOperator<T, U, H>where
H: RefUnwindSafe,
T: RefUnwindSafe,
U: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more