pub fn block_diag<T: Scalar>(blocks: &[Array2<T>]) -> Array2<T>
The block diagonal matrix with the given blocks (SciPy’s block_diag).
block_diag