// ~/cartan/cartan-optim/src/result.rs
//! Optimization result type.
usecartan_core::Real;/// The outcome of a Riemannian optimization run.
////// Returned by all optimizers. Contains the final iterate, convergence info,
/// and per-iteration diagnostics.
#[derive(Debug, Clone)]pubstructOptResult<P>{/// The final iterate (best point found).
pubpoint: P,
/// Cost function value at the final iterate.
pubvalue: Real,
/// Riemannian gradient norm at the final iterate.
pubgrad_norm: Real,
/// Total number of iterations executed.
pubiterations:usize,
/// Whether the optimizer reached the gradient tolerance.
////// `false` means max iterations were hit without converging.
pubconverged:bool,
}