The Elk Code
z2mmct.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: z2mmct
8 ! !INTERFACE:
9 pure subroutine z2mmct(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 a $2\times 2$ matrix with the conjugate transpose of another.
16 ! 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)=a(1,1)*conjg(b(1,1))+a(1,2)*conjg(b(1,2))
27 c(2,1)=a(2,1)*conjg(b(1,1))+a(2,2)*conjg(b(1,2))
28 c(1,2)=a(1,1)*conjg(b(2,1))+a(1,2)*conjg(b(2,2))
29 c(2,2)=a(2,1)*conjg(b(2,1))+a(2,2)*conjg(b(2,2))
30 end subroutine
31 !EOC
32 
pure subroutine z2mmct(a, b, c)
Definition: z2mmct.f90:10