| 130 | } |
| 131 | |
| 132 | dim4 verifyDims(const unsigned ndims, const dim_t *const dims) { |
| 133 | DIM_ASSERT(1, ndims >= 1); |
| 134 | |
| 135 | dim4 d(1, 1, 1, 1); |
| 136 | |
| 137 | for (unsigned i = 0; i < ndims; i++) { |
| 138 | d[i] = dims[i]; |
| 139 | DIM_ASSERT(2, dims[i] >= 1); |
| 140 | } |
| 141 | |
| 142 | return d; |
| 143 | } |
| 144 | |
| 145 | template<typename T> |
| 146 | void releaseHandle(const af_array arr) { |
no outgoing calls
no test coverage detected