DOT

From STX Wiki
< Programmer Guide‎ | SPU Reference
Revision as of 15:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

DOT - dot product

Usage:

DOT A B

Inputs:
A number or vector
B same type as A
Outputs:
Y dot product A.B (number)
Function:

Compute the dot product of A and B.

if A and B are numbers: Y = A.B
if A and B are vectors: Y = A[0].B[0] + ... + A[n-1].B[n-1];
B

Navigation menu

Personal tools