pub struct SolveWithHistoryResult {
pub solution: Vec<f64>,
pub iterations: u32,
pub residual: f64,
pub converged: bool,
pub algorithm: String,
pub time_us: u32,
pub convergence_history: Vec<ConvergenceEntry>,
}Expand description
Result of solving with convergence history.
Fields§
§solution: Vec<f64>Solution vector x.
iterations: u32Number of iterations performed.
residual: f64Final residual norm.
converged: boolWhether the solver converged.
algorithm: StringAlgorithm used.
time_us: u32Wall-clock time in microseconds.
convergence_history: Vec<ConvergenceEntry>Per-iteration convergence history.
Trait Implementations§
Source§impl FromNapiValue for SolveWithHistoryResult
impl FromNapiValue for SolveWithHistoryResult
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for SolveWithHistoryResult
impl ToNapiValue for SolveWithHistoryResult
Source§unsafe fn to_napi_value(
env: napi_env,
val: SolveWithHistoryResult,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: SolveWithHistoryResult, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for SolveWithHistoryResult
impl TypeName for SolveWithHistoryResult
Source§impl ValidateNapiValue for SolveWithHistoryResult
impl ValidateNapiValue for SolveWithHistoryResult
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for SolveWithHistoryResult
impl RefUnwindSafe for SolveWithHistoryResult
impl Send for SolveWithHistoryResult
impl Sync for SolveWithHistoryResult
impl Unpin for SolveWithHistoryResult
impl UnsafeUnpin for SolveWithHistoryResult
impl UnwindSafe for SolveWithHistoryResult
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