MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / saxpy_functor

Class saxpy_functor

compute/perf/perf_bolt_saxpy.cpp:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21BOLT_FUNCTOR(saxpy_functor,
22 struct saxpy_functor
23 {
24 float _a;
25 saxpy_functor(float a) : _a(a) {};
26
27 float operator() (const float &x, const float &y) const
28 {
29 return _a * x + y;
30 };
31 };
32)
33
34int main(int argc, char *argv[])

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected