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

Function getInput

test/wrap.cpp:252–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252static void getInput(af_array *data, const dim_t *dims) {
253 float h_data[16] = {10, 20, 20, 30, 30, 40, 40, 50,
254 30, 40, 40, 50, 50, 60, 60, 70};
255 ASSERT_SUCCESS(af_create_array(data, &h_data[0], 2, dims, f32));
256}
257static void getGold(af_array *gold, const dim_t *dims) {
258 float h_gold[16] = {10, 20, 30, 40, 20, 30, 40, 50,
259 30, 40, 50, 60, 40, 50, 60, 70};

Callers 3

SetUpMethod · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85

Calls 1

af_create_arrayFunction · 0.50

Tested by

no test coverage detected