The Elk Code
 
Loading...
Searching...
No Matches
z2mm.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: z2mm
8! !INTERFACE:
9pure subroutine z2mm(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 two complex $2\times 2$ matrices. Note that the output matrix
16! cannot be one of the input matrices.
17!
18! !REVISION HISTORY:
19! Created October 2007 (JKD)
20!EOP
21!BOC
22implicit none
23! arguments
24complex(8), intent(in) :: a(2,2),b(2,2)
25complex(8), intent(out) :: c(2,2)
26c(1,1)=a(1,1)*b(1,1)+a(1,2)*b(2,1)
27c(2,1)=a(2,1)*b(1,1)+a(2,2)*b(2,1)
28c(1,2)=a(1,1)*b(1,2)+a(1,2)*b(2,2)
29c(2,2)=a(2,1)*b(1,2)+a(2,2)*b(2,2)
30end subroutine
31!EOC
32
pure subroutine z2mm(a, b, c)
Definition z2mm.f90:10