| 34 | return *this; |
| 35 | } |
| 36 | void check_initialized() { |
| 37 | if (!initialized_) { |
| 38 | throw std::invalid_argument( |
| 39 | "Must give indices to array.at (e.g. `x.at[0].add(4)`)."); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | mx::array add(const ScalarOrArray& v) { |
| 44 | check_initialized(); |
nothing calls this directly
no outgoing calls
no test coverage detected