mmfutils.math.linalg

Linear Algebra Routines

mmfutils.math.linalg.block_diag(arrays)[source]

Create a new diagonal matrix from the provided arrays.

Parameters

b, c, .. (a,) – Input arrays.

Returns

D – Array with a, b, c, … on the diagonal.

Return type

ndarray

Examples