jax.scipy.linalg.block_diag
Warning
This page was created from a pull request (#9655).
jax.scipy.linalg.block_diag¶
- jax.scipy.linalg.block_diag(*arrs)[source]¶
Create a block diagonal matrix from provided arrays.
LAX-backend implementation of
block_diag()
.Original docstring below.
Given the inputs A, B and C, the output will have these arrays arranged on the diagonal:
[[A, 0, 0], [0, B, 0], [0, 0, C]]
- Returns
D – Array with A, B, C, … on the diagonal. D has the same dtype as A.
- Return type