3#include <amdis/linearalgebra/eigen/MatrixBackend.hpp>
4#include <amdis/linearalgebra/eigen/VectorBackend.hpp>
9 template <
class T1,
int O1,
class T2,
class T3>
10 auto residuum(EigenSparseMatrix<T1,O1>
const& A, EigenVector<T2>
const& x, EigenVector<T3>
const& b)
13 r.noalias() -= A.matrix() * x.vector();
18 template <
class T1,
int O1,
class T2,
class T3>
19 auto relResiduum(EigenSparseMatrix<T1,O1>
const& A, EigenVector<T2>
const& x, EigenVector<T3>
const& b)
21 return residuum(A,x,b) / b.vector().norm();