The Elk Code
r3mtv.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2002-2005 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: r3mtv
8 ! !INTERFACE:
9 pure subroutine r3mtv(a,x,y)
10 ! !INPUT/OUTPUT PARAMETERS:
11 ! a : input matrix (in,real(3,3))
12 ! x : input vector (in,real(3))
13 ! y : output vector (out,real(3))
14 ! !DESCRIPTION:
15 ! Multiplies the transpose of a real $3\times 3$ matrix with a vector.
16 !
17 ! !REVISION HISTORY:
18 ! Created January 2003 (JKD)
19 !EOP
20 !BOC
21 implicit none
22 ! arguments
23 real(8), intent(in) :: a(3,3),x(3)
24 real(8), intent(out) :: y(3)
25 y(1)=a(1,1)*x(1)+a(2,1)*x(2)+a(3,1)*x(3)
26 y(2)=a(1,2)*x(1)+a(2,2)*x(2)+a(3,2)*x(3)
27 y(3)=a(1,3)*x(1)+a(2,3)*x(2)+a(3,3)*x(3)
28 end subroutine
29 !EOC
30 
pure subroutine r3mtv(a, x, y)
Definition: r3mtv.f90:10