MCPcopy Create free account
hub / github.com/ArashPartow/exprtk / avg

Method avg

exprtk_benchmark.cpp:194–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 typedef typename functor_t::Type Type;
193
194 static inline T avg(Type x, Type y)
195 {
196 return (x + y) / T(2);
197 }
198
199 static inline T clamp(const Type l, const Type v, const Type u)
200 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected