| 217 | } |
| 218 | |
| 219 | std::shared_ptr<Array> reshape( |
| 220 | const std::shared_ptr<const Array>& arr, |
| 221 | const std::vector<int64_t>& shape) { |
| 222 | auto dst = std::make_shared<Array>(arr); |
| 223 | dst->reshape(shape); |
| 224 | return dst; |
| 225 | } |
| 226 | |
| 227 | std::shared_ptr<Array> squeeze( |
| 228 | const std::shared_ptr<const Array>& arr, |