| 13 | |
| 14 | namespace af { |
| 15 | array createStridedArray( |
| 16 | const void *data, const dim_t offset, |
| 17 | const dim4 dims, // NOLINT(performance-unnecessary-value-param) |
| 18 | const dim4 strides, // NOLINT(performance-unnecessary-value-param) |
| 19 | const af::dtype ty, const af::source location) { |
| 20 | af_array res; |
| 21 | AF_THROW(af_create_strided_array(&res, data, offset, dims.ndims(), |
| 22 | dims.get(), strides.get(), ty, location)); |
| 23 | return array(res); |
| 24 | } |
| 25 | |
| 26 | dim4 getStrides(const array &in) { |
| 27 | dim_t s0, s1, s2, s3; |
no test coverage detected