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

Method apply

include/boost/compute/container/valarray.hpp:239–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237
238 template<class UnaryFunction>
239 valarray<T> apply(UnaryFunction function) const
240 {
241 valarray<T> result(size());
242 transform(begin(), end(), result.begin(), function);
243 return result;
244 }
245
246 const buffer& get_buffer() const
247 {

Callers

nothing calls this directly

Calls 2

transformFunction · 0.85
beginMethod · 0.45

Tested by

no test coverage detected