mmfutils.math.linalg¶
Linear Algebra Routines
-
mmfutils.math.linalg.
block_diag
(arrays)[source]¶ Create a new diagonal matrix from the provided arrays.
- Parameters
a (ndarray) – Input arrays.
b (ndarray) – Input arrays.
c (ndarray) – Input arrays.
.. (ndarray) – Input arrays.
- Returns
D – Array with a, b, c, … on the diagonal.
- Return type
ndarray
Examples