Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: matrix.angle - Function Up: matrix - Tool Previous: matrix.crossproduct - Function


matrix.dotproduct - Function



Package utility
Module mathematics
Tool matrix


vector dot-product


Synopsis
dotproduct(v1, v2)


Arguments

v1   The first vector (Input)
v2   The second vector (Input)


Returns
scalar


Description
Returns the dot-product (or inner product) of two vectors of the same length. The result is proportional to the cosine of the angle between them (see also the functions .angle() and .cosangle() below).





next up previous contents index
Next: matrix.angle - Function Up: matrix - Tool Previous: matrix.crossproduct - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15