Verifies that partitioning on a domain is correct in the sense that the original function and the function over the partition return the same values at the corners and center of the subdomain.
More...
#include <FunctionChecker.h>
template<typename R, typename D>
class inet::math::FunctionChecker< R, D >
Verifies that partitioning on a domain is correct in the sense that the original function and the function over the partition return the same values at the corners and center of the subdomain.
◆ FunctionChecker()
template<typename R , typename D >
31 :
function(
function) {}
◆ check() [1/2]
template<typename R , typename D >
◆ check() [2/2]
template<typename R , typename D >
38 function->partition(i, [&] (
const typename D::I& i1,
const IFunction<R, D> *f1) {
39 auto check = std::function<void(const typename D::P&)>([&] (
const typename D::P& p) {
41 R r = function->getValue(p);
42 R r1 = f1->getValue(p);
43 ASSERT(r == r1 || (std::isnan(toDouble(r)) && std::isnan(toDouble(r1))));
47 check((i1.getLower() + i1.getUpper()) / 2);
◆ function
template<typename R , typename D >
The documentation for this class was generated from the following file: