block_diagonal_array

psi4.driver.p4util.block_diagonal_array(*args)[source]

Convert square NumPy array to a single block diagonal array. Mimic of SciPy’s scipy.linalg.block_diag(). :rtype: ndarray

Parameters:

args (List[ndarray]) – Arbitrary number of square arrays.

Return type:

ndarray