scatter_add_single

Function scatter_add_single 

Source
pub fn scatter_add_single(
    a: impl AsRef<Array>,
    indices: impl AsRef<Array>,
    updates: impl AsRef<Array>,
    axis: i32,
) -> Result<Array>
Expand description

Scatter-add updates to the array at the given indices along a single axis.

Adds the update values to the existing values at the specified indices.

ยงParams

  • a: Input array
  • indices: Indices array specifying positions to scatter into
  • updates: Values to add
  • axis: The axis along which to scatter