| 192 | |
| 193 | template<typename T> |
| 194 | T *Array<T>::device() { |
| 195 | if (!isOwner() || getOffset() || data.use_count() > 1) { |
| 196 | *this = copyArray<T>(*this); |
| 197 | } |
| 198 | return this->get(); |
| 199 | } |
| 200 | |
| 201 | template<typename T> |
| 202 | void evalMultiple(std::vector<Array<T> *> arrays) { |
no test coverage detected