MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::sparse::refine_options Struct Reference

Controls for iterative_refine. More...

#include <iterative_refine.hpp>

Public Attributes

int max_iter = 20
 maximum correction steps
double rel_tol = 0.0
 stop when ||r||inf/||b||inf <= rel_tol (0 = disabled)
bool scaled = false
 normalize the residual before each correction solve
int patience = 3
 stop after this many consecutive non-improving steps (>=1; tolerates a noisy low-precision residual so IR reaches its floor instead of quitting on one bad step)

Detailed Description

Controls for iterative_refine.

Member Data Documentation

◆ max_iter

int mtl::sparse::refine_options::max_iter = 20

maximum correction steps

◆ patience

int mtl::sparse::refine_options::patience = 3

stop after this many consecutive non-improving steps (>=1; tolerates a noisy low-precision residual so IR reaches its floor instead of quitting on one bad step)

◆ rel_tol

double mtl::sparse::refine_options::rel_tol = 0.0

stop when ||r||inf/||b||inf <= rel_tol (0 = disabled)

◆ scaled

bool mtl::sparse::refine_options::scaled = false

normalize the residual before each correction solve


The documentation for this struct was generated from the following file: