candle.uq_utils.fill_array

Contents

candle.uq_utils.fill_array#

candle.uq_utils.fill_array(blocklist, maxsize, numdata, numblocks, blocksize)#

Fills a new array of integers with the indices corresponding to the specified block structure.

Parameters:
  • blocklist (list) – List of integers describen the block indices that go into the array

  • maxsize (int) – Maximum possible length for the partition (the size of the common block size plus the remainder, if any).

  • numdata (int) – Total number of data points to distribute

  • numblocks (int) – Total number of blocks to distribute into

  • blocksize (int) – Size of data per block

Returns:

indexArray – Indices for specific data partition. Resizes the array to the correct length.

Return type:

int numpy array