CalculiX  2.13
A Free Software Three-Dimensional Structural Finite Element Program
multvec.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine multvec (n, x, y, dot)
 

Function/Subroutine Documentation

◆ multvec()

subroutine multvec ( integer  n,
real*8, dimension(*)  x,
real*8, dimension(*)  y,
real*8  dot 
)
20 !
21 ! calculates the dot product of two vectors x and y of length n
22 !
23  implicit none
24 !
25  integer i,n
26 !
27  real*8 x(*),y(*),dot
28 !
29  dot=0.d0
30  do i=1,n
31  dot=dot+x(i)*y(i)
32  enddo
33 !
34  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)