MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / write_array

Function write_array

src/api/c/array.cpp:277–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275
276template<typename T>
277void write_array(af_array arr, const T *const data, const size_t bytes,
278 af_source src) {
279 if (src == afHost) {
280 writeHostDataArray(getArray<T>(arr), data, bytes);
281 } else {
282 writeDeviceDataArray(getArray<T>(arr), data, bytes);
283 }
284}
285
286af_err af_write_array(af_array arr, const void *data, const size_t bytes,
287 af_source src) {

Callers 1

af_write_arrayFunction · 0.85

Calls 2

writeHostDataArrayFunction · 0.50
writeDeviceDataArrayFunction · 0.50

Tested by

no test coverage detected