pub trait SublinearSolver {
// Required methods
fn verify_sublinear_conditions(
&self,
matrix: &dyn Matrix,
) -> Result<ComplexityBound>;
fn solve_sublinear(
&self,
matrix: &dyn Matrix,
b: &[Precision],
config: &SublinearConfig,
) -> Result<Vec<Precision>>;
fn complexity_bound(&self) -> ComplexityBound;
}Expand description
Trait for algorithms that achieve true sublinear complexity
Required Methods§
Sourcefn verify_sublinear_conditions(
&self,
matrix: &dyn Matrix,
) -> Result<ComplexityBound>
fn verify_sublinear_conditions( &self, matrix: &dyn Matrix, ) -> Result<ComplexityBound>
Verify that the matrix satisfies conditions for sublinear complexity
Sourcefn solve_sublinear(
&self,
matrix: &dyn Matrix,
b: &[Precision],
config: &SublinearConfig,
) -> Result<Vec<Precision>>
fn solve_sublinear( &self, matrix: &dyn Matrix, b: &[Precision], config: &SublinearConfig, ) -> Result<Vec<Precision>>
Solve with guaranteed sublinear complexity
Sourcefn complexity_bound(&self) -> ComplexityBound
fn complexity_bound(&self) -> ComplexityBound
Get the actual complexity bound achieved