Extend a square array using specified indices.
array (ndarray) – Input array to be extended.
ndarray
dimension (int) – Dimension of the new square array.
int
idxs (List[int]) – A list of indices indicating positions in the input array to be filled.
List
Extended square array.