Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

10.17 dot()

PrototypesHeader File(s)
template <class T>
T
dot( const RWMathVec<T>& x,
const RWMathVec<T>& y)

<rw/math/mathvec.h>

10.17.1 Description

Returns the vector dot product z of two vectors, x and y. The two vectors must have the same number of elements or an exception with value MATH_VNMATCH occurs.

For example, if x = [ 0, 1, 2] and y = [ 1, 3, 2], then z = 0 + 3 + 4 = 7. For vectors of type complex, see also function conjDot().


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.