MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / generate_range

Function generate_range

tests/validation/reference/Range.cpp:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37{
38template <typename T>
39void generate_range(SimpleTensor<T> &dst, float start, const size_t num_of_elements, float step)
40{
41 float val = start;
42 for (size_t index = 0; index < num_of_elements; index++)
43 {
44 dst[index] = static_cast<T>(val);
45 val += step;
46 }
47}
48} // namespace
49
50template <typename T>

Callers 1

rangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected