e3x.ops.indexed.gather_src

e3x.ops.indexed.gather_src(inputs, *, adj_idx=None, src_idx=None, **_)[source]

Gather from inputs (source) according to dense or sparse index list.

Parameters:
Return type:

<class 'Shaped[Array, '_*input_shape_indexed_by_adj_idx_or_src_idx']'>

Returns:

An array with the gathered values.

Raises:

RuntimeError – If neither dense nor sparse index lists are provided, or if both are provided.