Generates a random array. testWriteToOutputArray expects that it will receive the same af_array that this generates after the af_* function is called
| 572 | // receive the same af_array that this generates after the af_* function is |
| 573 | // called |
| 574 | void genRegularArray(TestOutputArrayInfo *metadata, const unsigned ndims, |
| 575 | const dim_t *const dims, const af_dtype ty) { |
| 576 | metadata->init(ndims, dims, ty); |
| 577 | } |
| 578 | |
| 579 | void genRegularArray(TestOutputArrayInfo *metadata, double val, |
| 580 | const unsigned ndims, const dim_t *const dims, |
no test coverage detected