Public interface for functions that deal with matrix diagonals.
Constructs a block-diagonal matrix R from two general matrices A and B.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=wp), | intent(in), | dimension(:, :) | :: | A |
Left matrix [n×m] |
|
complex(kind=wp), | intent(in), | dimension(:, :) | :: | B |
Right matrix [p×q] |
R = Diag(A,B)
Extracts the diagonal of a general complex matrix.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=wp), | intent(in), | dimension(:, :) | :: | A |
Matrix [n×m] |
r = Diag(A)