e3x.ops.indexed.sparse_to_dense_indices
- e3x.ops.indexed.sparse_to_dense_indices(dst_idx, src_idx, pad_idx=None)[source]
Converts a sparse index list to a dense index list.
Note: Not compatible with
jax.jitorjax.vmapbecause boolean arrays are not concrete.- Parameters:
dst_idx (
<class 'Integer[Array, '... P']'>) – Destination indices.src_idx (
<class 'Integer[Array, '... P']'>) – Source indices.pad_idx (
Optional[int], default:None) – All indices >=pad_idxare assumed to be padding. If this isNone, all indices are assumed to be non-padding entries.
- Return type:
- Returns:
The corresponding dense index list.