| 122 | |
| 123 | template <class T> |
| 124 | void array_fill(void* data, int64_t size, double value) { |
| 125 | auto data_t = reinterpret_cast<T*>(data); |
| 126 | auto value_t = static_cast<T>(value); |
| 127 | for (int64_t i = 0; i < size; i++) { |
| 128 | data_t[i] = value_t; |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | void Array::fill(double value) { |
| 133 | ARRAY_DISPATCH(this, array_fill, data_.get(), size(), value); |
nothing calls this directly
no outgoing calls
no test coverage detected