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

Function genRegularArray

test/arrayfire_test.cpp:574–577  ·  view source on GitHub ↗

Generates a random array. testWriteToOutputArray expects that it will receive the same af_array that this generates after the af_* function is called

Source from the content-addressed store, hash-verified

572// receive the same af_array that this generates after the af_* function is
573// called
574void genRegularArray(TestOutputArrayInfo *metadata, const unsigned ndims,
575 const dim_t *const dims, const af_dtype ty) {
576 metadata->init(ndims, dims, ty);
577}
578
579void genRegularArray(TestOutputArrayInfo *metadata, double val,
580 const unsigned ndims, const dim_t *const dims,

Callers 1

genTestOutputArrayFunction · 0.85

Calls 1

initMethod · 0.45

Tested by

no test coverage detected