File: VRfDotProd.html

package info (click to toggle)
libtsp 3r0-1
  • links: PTS
  • area: non-free
  • in suites: potato, woody
  • size: 5,096 kB
  • ctags: 1,798
  • sloc: ansic: 14,464; sh: 1,217; makefile: 182
file content (55 lines) | stat: -rw-r--r-- 1,089 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<HTML>
<HEAD>
<TITLE>TSP (libtsp/VR) - VRfDotProd</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFACD">
<H2>VRfDotProd</H2>
<HR>
<H4>Routine</H4>
<DL>
<DT>
double VRfDotProd (const float x1[], const float x2[], int N)
</DL>
<H4>Purpose</H4>
<DL>
<DT>
Dot product of two float arrays (double result)
</DL>
<H4>Description</H4>
This routine calculates the dot product of two float arrays x1 and x2.  The
dot product is calculated internally as a double and returned as a double
value.
<PRE>
               N-1
  VRfDotProd = SUM x1[i] * x2[i] .
               i=0
</PRE>
<H4>Parameters</H4>
<DL>
<DT>
&lt;-  double VRfDotProd
<DD>
Dot product
<DT>
 -&gt; const float x1[]
<DD>
Input array (N elements)
<DT>
 -&gt; const float x2[]
<DD>
Input array (N elements)
<DT>
 -&gt; int N
<DD>
Number of elements in the arrays (may be zero)
</DL>
<H4>Author / revision</H4>
P. Kabal  Copyright (C) 1995
/ Revision 1.3  1995/02/09
<H4>See Also</H4>
<A HREF="VRfDiffSq.html">VRfDiffSq</A>
<P>
<HR>
Main Index <A HREF="../libtsp.html">libtsp</A>
</BODY>
</HTML>