Programmer Guide/SPU Reference/DOT: Difference between revisions

From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import)

Revision as of 11:58, 28 April 2011

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