NetOptim 1.2.8
Loading...
Searching...
No Matches
netoptim_detail::HasMakeWeightFn Concept Reference

Detect an optional make_weight_fn(x) fast path on an edge oracle. More...

#include <netoptim_detail.hpp>

Concept definition

template<typename Fn, typename Arr>
concept netoptim_detail::HasMakeWeightFn = requires(Fn& fn, const Arr& x) {
{ fn.make_weight_fn(x) };
}
Detect an optional make_weight_fn(x) fast path on an edge oracle.
Definition netoptim_detail.hpp:127

Detailed Description

Detect an optional make_weight_fn(x) fast path on an edge oracle.

An oracle may expose make_weight_fn(x) returning a callable edge -> weight with the iterate bound once, so the per-edge hot loop of Howard's method avoids repeatedly re-deriving it.

Template Parameters
Fnedge-oracle type
Arriterate / point type