fill_array_by_idx()
Extend a square array using specified indices.
array (ndarray | Array) – Input array to be extended.
ndarray
Array
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
unp_inner – Array namespace (numpy or jax.numpy) that performs the computation.
numpy
jax.numpy
ndarray | Array
Extended square array.