| 181 | } |
| 182 | |
| 183 | void swap(Array<T> &other) noexcept { |
| 184 | using std::swap; |
| 185 | swap(info, other.info); |
| 186 | swap(data, other.data); |
| 187 | swap(data_dims, other.data_dims); |
| 188 | swap(node, other.node); |
| 189 | swap(owner, other.owner); |
| 190 | } |
| 191 | |
| 192 | Array(const af::dim4 &dims, const af::dim4 &strides, dim_t offset, |
| 193 | const T *const in_data, bool is_device = false); |