The Elk Code
 
Loading...
Searching...
No Matches
i3mtv.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: i3mtv
8! !INTERFACE:
9pure subroutine i3mtv(a,x,y)
10! !INPUT/OUTPUT PARAMETERS:
11! a : input matrix (in,integer(3,3))
12! x : input vector (in,integer(3))
13! y : output vector (out,integer(3))
14! !DESCRIPTION:
15! Multiplies the transpose of an integer $3\times 3$ matrix with a vector.
16!
17! !REVISION HISTORY:
18! Created April 2007 (JKD)
19!EOP
20!BOC
21implicit none
22! arguments
23integer, intent(in) :: a(3,3),x(3)
24integer, intent(out) :: y(3)
25y(1)=a(1,1)*x(1)+a(2,1)*x(2)+a(3,1)*x(3)
26y(2)=a(1,2)*x(1)+a(2,2)*x(2)+a(3,2)*x(3)
27y(3)=a(1,3)*x(1)+a(2,3)*x(2)+a(3,3)*x(3)
28end subroutine
29!EOC
30
pure subroutine i3mtv(a, x, y)
Definition i3mtv.f90:10