pub struct OptResult<P> {
pub point: P,
pub value: Real,
pub grad_norm: Real,
pub iterations: usize,
pub converged: bool,
}Expand description
The outcome of a Riemannian optimization run.
Returned by all optimizers. Contains the final iterate, convergence info, and per-iteration diagnostics.
Fields§
§point: PThe final iterate (best point found).
value: RealCost function value at the final iterate.
grad_norm: RealRiemannian gradient norm at the final iterate.
iterations: usizeTotal number of iterations executed.
converged: boolWhether the optimizer reached the gradient tolerance.
false means max iterations were hit without converging.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for OptResult<P>where
P: Freeze,
impl<P> RefUnwindSafe for OptResult<P>where
P: RefUnwindSafe,
impl<P> Send for OptResult<P>where
P: Send,
impl<P> Sync for OptResult<P>where
P: Sync,
impl<P> Unpin for OptResult<P>where
P: Unpin,
impl<P> UnsafeUnpin for OptResult<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for OptResult<P>where
P: 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