e3x.ops.indexed.gather_dst
- e3x.ops.indexed.gather_dst(inputs, *, adj_idx=None, dst_idx=None, **_)[source]
Gather from inputs (destination) according to dense or sparse index list.
- Parameters:
inputs (
<class 'Shaped[Array, '_*indexable_by_adj_idx_or_src_idx']'>) – Inputs to gather from.adj_idx (
Optional[Integer[Array, '... N M']], default:None) – Adjacency indices (if dense index list is used), orNone(if sparse index list is used).dst_idx (
Optional[Integer[Array, '... P']], default:None) – Destination indices (if sparse index list is used), orNone(if dense index list is used).
- Return type:
<class 'Shaped[Array, '_*input_shape_indexed_by_adj_idx_or_dst_idx']'>- Returns:
An array with the gathered values.
- Raises:
RuntimeError – If neither dense nor sparse index lists are provided, or if both are provided.