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

Namespaces

namespace  mtl

Functions

template<typename T, typename PA, typename PV>
double mtl::normwise_backward_error (const mat::dense2D< T, PA > &A, const vec::dense_vector< T, PV > &x, const vec::dense_vector< T, PV > &b)
 Normwise backward error eta(x) = ||b - A x||_inf / (||A||_inf ||x||_inf + ||b||_inf).