pub struct SolverResult {
pub solution: Vec<Precision>,
pub residual_norm: Precision,
pub iterations: usize,
pub converged: bool,
pub error_bounds: Option<ErrorBounds>,
pub stats: Option<SolverStats>,
pub memory_info: Option<MemoryInfo>,
pub profile_data: Option<Vec<ProfileData>>,
}Expand description
Result of a solver computation.
Fields§
§solution: Vec<Precision>Final solution vector
residual_norm: PrecisionFinal residual norm
iterations: usizeNumber of iterations performed
converged: boolWhether the algorithm converged
error_bounds: Option<ErrorBounds>Error bounds (if computed)
stats: Option<SolverStats>Detailed statistics (if collected)
memory_info: Option<MemoryInfo>Memory usage information
profile_data: Option<Vec<ProfileData>>Performance profiling data
Implementations§
Source§impl SolverResult
impl SolverResult
Sourcepub fn success(
solution: Vec<Precision>,
residual_norm: Precision,
iterations: usize,
) -> Self
pub fn success( solution: Vec<Precision>, residual_norm: Precision, iterations: usize, ) -> Self
Create a successful result.
Sourcepub fn failure(
solution: Vec<Precision>,
residual_norm: Precision,
iterations: usize,
) -> Self
pub fn failure( solution: Vec<Precision>, residual_norm: Precision, iterations: usize, ) -> Self
Create a failure result.
Sourcepub fn error(error: SolverError) -> Self
pub fn error(error: SolverError) -> Self
Create an error result.
Sourcepub fn meets_quality_criteria(&self, tolerance: Precision) -> bool
pub fn meets_quality_criteria(&self, tolerance: Precision) -> bool
Check if the solution meets the specified quality criteria.
Trait Implementations§
Source§impl Clone for SolverResult
impl Clone for SolverResult
Source§fn clone(&self) -> SolverResult
fn clone(&self) -> SolverResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SolverResult
impl Debug for SolverResult
Source§impl<'de> Deserialize<'de> for SolverResult
impl<'de> Deserialize<'de> for SolverResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SolverResult
impl PartialEq for SolverResult
Source§impl Serialize for SolverResult
impl Serialize for SolverResult
impl StructuralPartialEq for SolverResult
Auto Trait Implementations§
impl Freeze for SolverResult
impl RefUnwindSafe for SolverResult
impl Send for SolverResult
impl Sync for SolverResult
impl Unpin for SolverResult
impl UnwindSafe for SolverResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.