MCPcopy Create free account
hub / github.com/boostorg/compute / make_negate_function

Function make_negate_function

test/test_function.cpp:161–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159
160template<class T>
161inline compute::function<T(T)> make_negate_function()
162{
163 BOOST_COMPUTE_FUNCTION(T, negate, (const T x),
164 {
165 return -x;
166 });
167
168 return negate;
169}
170
171BOOST_AUTO_TEST_CASE(test_templated_function)
172{

Callers

nothing calls this directly

Calls 1

BOOST_COMPUTE_FUNCTIONFunction · 0.70

Tested by

no test coverage detected