pub struct Error {
pub cut_back: Scalar,
pub max_steps: usize,
}Expand description
Backtrack for errors.
Fields§
§cut_back: Scalar§max_steps: usizeTrait Implementations§
Source§impl ObjectiveMerit for Error
impl ObjectiveMerit for Error
Source§const MERIT: bool = false
const MERIT: bool = false
Whether the value and slope of the merit are read, and so worth preparing.
Source§fn search<X, J, D, W, E>(
&self,
function: impl FnMut(&X, Scalar) -> Result<Scalar, String>,
_jacobian: impl FnMut(&X) -> Result<J, String>,
argument: &X,
jacobian0: &J,
decrement: &D,
step_size: Scalar,
) -> Result<Scalar, LineSearchError>
fn search<X, J, D, W, E>( &self, function: impl FnMut(&X, Scalar) -> Result<Scalar, String>, _jacobian: impl FnMut(&X) -> Result<J, String>, argument: &X, jacobian0: &J, decrement: &D, step_size: Scalar, ) -> Result<Scalar, LineSearchError>
Backtrack along a step of the objective, whose gradient is known.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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