fill_array_by_idx

fill_array_by_idx(array, dimension, idxs)

Extend a square array using specified indices.

Parameters:
  • array (ndarray) – Input array to be extended.

  • dimension (int) – Dimension of the new square array.

  • idxs (List[int]) – A list of indices indicating positions in the input array to be filled.

Return type:

ndarray

Returns:

Extended square array.