num::scatter¶
Defined in header <linear/matrix_utils.hpp>
template <typename T>
void scatter(view<const T> values, view<const idx> indices, view<T> output,
bool add = false);
Write values at given indices, or add them: \(y_{I_k} \leftarrow x_k\) or \(y_{I_k} \leftarrow y_{I_k} + x_k\).