MCPcopy Create free account
hub / github.com/bgrimstad/splinter / validSolution

Method validSolution

include/linearsolvers.h:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 bool validSolution(const lhs &A, const rhs &b, const rhs &x) const
52 {
53 //return b.isApprox(A*x);
54 double err = (A*x - b).norm() / b.norm();
55
56 return (err <= tol);
57 }
58};
59
60template<class rhs = DenseVector>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected