Back to Eqiora docs Skip to main content

PreparedLinearSolver

Trait PreparedLinearSolver 

pub trait PreparedLinearSolver<S = f64>: Debug {
    // Required method
    fn solve(
        &mut self,
        structure: &PreparedLinearStructureIdentity,
        problem: &LinearProblem<'_, S>,
    ) -> Result<LinearSolution<S>, Diagnostic>;
}
Description

Provider-private state for repeated solves inside one prepared run.

Required Methods§

fn solve( &mut self, structure: &PreparedLinearStructureIdentity, problem: &LinearProblem<'_, S>, ) -> Result<LinearSolution<S>, Diagnostic>

Solve one matrix candidate under its exact assembly structure identity.

A provider must compare both the complete identity and actual canonical CSR topology before reusing symbolic state.

§Errors

Returns a structured identity, capability, or numerical diagnostic.

Implementors§