MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / apply

Method apply

src/targets/gpu/kernels/include/migraphx/kernels/array.hpp:195–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193
194 template <class F>
195 constexpr auto apply(F f) const
196 {
197 array<decltype(f(d[0])), N> result;
198 transform(this->begin(), this->end(), result.begin(), f);
199 return result;
200 }
201
202 template <class F>
203 constexpr auto reduce(F f, T init) const

Callers 3

array_applyFunction · 0.45
vec_reduceFunction · 0.45
final_reduceFunction · 0.45

Calls 3

beginMethod · 0.95
endMethod · 0.95
transformFunction · 0.70

Tested by

no test coverage detected