mcmodels.utils.padded_diagonal_fill¶
-
mcmodels.utils.
padded_diagonal_fill
(arrays)[source]¶ Returns array filled with uneven arrays padding with zeros.
Arrays are placed in the return array such that each row/column only contains the elements of a single array. Can be thought of as representing disconnected subgraphs.
Parameters: - arrays : list
List of 2D arrays with which to fill the return array.
Returns: - padded : array
Return array containing each of the input arrays, padded with zeros.