NOLINTNEXTLINE(readability-const-return-type)
| 485 | |
| 486 | // NOLINTNEXTLINE(readability-const-return-type) |
| 487 | const array array::as(af::dtype type) const { |
| 488 | af_array out; |
| 489 | AF_THROW(af_cast(&out, this->get(), type)); |
| 490 | return array(out); |
| 491 | } |
| 492 | |
| 493 | array::array(const array &in) : arr(nullptr) { |
| 494 | AF_THROW(af_retain_array(&arr, in.get())); |