indices_to_vector#
- ssip.basic_functions.indices_to_vector(indices: Iterable[int], length: int) list[int] [source]#
Converts a list of indices to a vector with support on those indices.
- Parameters:
indices – The list of indices.
length – The desired length of the vector.
- Returns:
The vector with support on those indices.