Documentation for /Users/balarsen/Documents/idl/larsen/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

./

dot.pro

topdot

vector

result = dot(a, b)

calculate the scalar (dot) product in any number of dimensions

it is the product of the components of the vecors a_i*b_i (sum on i)

Return value

the scalar (dot) product answer of the input vectors

Parameters

a in required

first vector in operation

b in required

second vecotr in operation

Examples

ans=dot([1,2,3,4,5,6],[6,5,43,3,2,1])

Author information

History:

Sun Feb 18 17:16:23 2007, Brian Larsen added message call and remorved for loop in favor of total() Wed Nov 5 22:06:11 2003, Brian Larsen Written and finished

Statistics

Lines: 10
McCabe complexity:

File attributes

Modifcation date: Tue Sep 9 13:57:18 2008
Lines: 53
Disclaimer