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

Function fill_array

tests/Utils.h:506–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504
505template <typename T, typename ArrayAccessor_T>
506inline void fill_array(ArrayAccessor_T &&array, const std::vector<T> &v)
507{
508 array.resize(v.size());
509 std::memcpy(array.buffer(), v.data(), v.size() * sizeof(T));
510}
511
512/** Obtain numpy type string from DataType.
513 *

Callers

nothing calls this directly

Calls 4

resizeMethod · 0.45
sizeMethod · 0.45
bufferMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected