Skip to content
fn

scatter

void scatter(const int * packed, int * first, const int & shape, const int & stride, int elem)

Lays packed — shape's elements, dense and row-major — into the view at first through stride: the inverse of pack. Runs move as a memcpy when the inner axis is contiguous and as typed stores otherwise. The view must not repeat an element (overlaps_itself).