3 #include <amdis/linearalgebra/istl/MatrixBackend.hpp> 4 #include <amdis/linearalgebra/istl/VectorBackend.hpp> 9 template <
class T1,
class C1,
class T2,
class T3>
10 auto residuum(ISTLBCRSMatrix<T1,C1>
const& A, ISTLBlockVector<T2>
const& x, ISTLBlockVector<T3>
const& b)
13 A.matrix().mmv(x.vector(), r);
18 template <
class T1,
class C1,
class T2,
class T3>
19 auto relResiduum(ISTLBCRSMatrix<T1,C1>
const& A, ISTLBlockVector<T2>
const& x, ISTLBlockVector<T3>
const& b)
21 return residuum(A,x,b) / b.vector().two_norm();
Definition: AdaptBase.hpp:6