| 199 | } |
| 200 | |
| 201 | void swap(Array<T> &other) noexcept { |
| 202 | using std::swap; |
| 203 | swap(info, other.info); |
| 204 | swap(data, other.data); |
| 205 | swap(data_dims, other.data_dims); |
| 206 | swap(node, other.node); |
| 207 | swap(owner, other.owner); |
| 208 | } |
| 209 | |
| 210 | Array(const af::dim4 &dims, const af::dim4 &strides, dim_t offset, |
| 211 | const T *const in_data, bool is_device = false); |