MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
iterative_refine.hpp File Reference
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <limits>
#include <stdexcept>
#include <mtl/mat/compressed2D.hpp>
#include <mtl/vec/dense_vector.hpp>

Classes

struct  mtl::sparse::refine_options
 Controls for iterative_refine. More...
struct  mtl::sparse::refine_result
 Outcome of iterative_refine. More...

Namespaces

namespace  mtl
namespace  mtl::sparse

Functions

template<typename Residual, typename Parameters, typename Factorization>
refine_result mtl::sparse::iterative_refine (const mat::compressed2D< Residual, Parameters > &A, const Factorization &fac, const vec::dense_vector< Residual > &b, vec::dense_vector< Residual > &x, const refine_options &opt={})
 Refine x in-place so that A x = b, using factorization fac.