aspcore.matrices.block_diag
- aspcore.matrices.block_diag(arrays)
Creates a block diagonal matrix
- The operation is performed independently (broadcasted) over the first dimension.
The length of the first dimension must be the same for all matrices.
- Parameters:
arrays (list of ndarrays) – ndim must be 3 or more to make a block_diag with ndim=2, just use scipy.block_diag
- Returns:
diag_mat
- Return type:
ndarray of shape (tot_rows, tot_cols)