pub struct SolveResult {
pub solution: Vec<f64>,
pub iterations: u32,
pub residual: f64,
pub converged: bool,
pub algorithm: String,
pub time_us: u32,
}Expand description
Result of solving a sparse linear system.
Fields§
§solution: Vec<f64>Solution vector x.
iterations: u32Number of iterations performed.
residual: f64Final residual norm ||Ax - b||.
converged: boolWhether the solver converged within tolerance.
algorithm: StringAlgorithm that was used.
time_us: u32Wall-clock time in microseconds.
Trait Implementations§
Source§impl FromNapiValue for SolveResult
impl FromNapiValue for SolveResult
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 SolveResult
impl ToNapiValue for SolveResult
Source§unsafe fn to_napi_value(env: napi_env, val: SolveResult) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: SolveResult) -> Result<napi_value>
Safety Read more
Source§impl TypeName for SolveResult
impl TypeName for SolveResult
Source§impl ValidateNapiValue for SolveResult
impl ValidateNapiValue for SolveResult
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 SolveResult
impl RefUnwindSafe for SolveResult
impl Send for SolveResult
impl Sync for SolveResult
impl Unpin for SolveResult
impl UnsafeUnpin for SolveResult
impl UnwindSafe for SolveResult
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