|
|
Matrix hermitian transpose. More...
Public Member Functions | |
| type(array) | array_htranspose (A) |
| Htranspose an array. | |
Matrix hermitian transpose.
| [in] | A | -- type array of size M x N |
type(array) Re, Im, Cplx, Cplx2, Im2 Re = randu(5, 5) ! Random matrix, real part Im = randu(5, 5) ! Random matrix, imaginary part Cplx = complex(Re, Im) ! Create complex matrix Cplx2 = htranspose(Cplx) ! Hermitian transpose Im2 = imag(Cplx2) ! Extract imaginary part. same call print(sum(Im + Im2)) ! Im is equal to -Im2