The Elk Code
z2mctm.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2007 J. K. Dewhurst, S. Sharma and C. Ambrosch-Draxl.
3 ! This file is distributed under the terms of the GNU Lesser General Public
4 ! License. See the file COPYING for license details.
5 
6 !BOP
7 ! !ROUTINE: z2mctm
8 ! !INTERFACE:
9 pure subroutine z2mctm(a,b,c)
10 ! !INPUT/OUTPUT PARAMETERS:
11 ! a : input matrix 1 (in,complex(2,2))
12 ! b : input matrix 2 (in,complex(2,2))
13 ! c : output matrix (out,complex(2,2))
14 ! !DESCRIPTION:
15 ! Multiplies the conjugate transpose of one complex $2\times 2$ matrix with
16 ! another. Note that the output matrix cannot be one of the input matrices.
17 !
18 ! !REVISION HISTORY:
19 ! Created October 2007 (JKD)
20 !EOP
21 !BOC
22 implicit none
23 ! arguments
24 complex(8), intent(in) :: a(2,2),b(2,2)
25 complex(8), intent(out) :: c(2,2)
26 c(1,1)=conjg(a(1,1))*b(1,1)+conjg(a(2,1))*b(2,1)
27 c(2,1)=conjg(a(1,2))*b(1,1)+conjg(a(2,2))*b(2,1)
28 c(1,2)=conjg(a(1,1))*b(1,2)+conjg(a(2,1))*b(2,2)
29 c(2,2)=conjg(a(1,2))*b(1,2)+conjg(a(2,2))*b(2,2)
30 end subroutine
31 !EOC
32 
pure subroutine z2mctm(a, b, c)
Definition: z2mctm.f90:10