MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / Accumulator

Class Accumulator

src/statTimer/statisticalTimer.GPU.cpp:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55// Functor object to help with accumulating values in vectors
56template< typename T >
57struct Accumulator: public std::unary_function< T, void >
58{
59 T acc;
60
61 Accumulator( ): acc( 0 ) {}
62 void operator( )(T x) { acc += x; }
63};
64
65// Functor object to help with accumulating values in vectors

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected