Programmer Guide/SPU Reference/MIX: Difference between revisions

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

Revision as of 17:31, 18 November 2010

MIX

Usage:

MIX A KA B KB

Inputs:
A input number or vector
KA weighting factor for A (number)
B same type as A
KB weighting factor for B (number)
Outputs:
Y number or vector (same type as A)
Function:

Compute the weight sum of inputs A and B.

if A and B are numbers: Y = A.KA + B.KB

if A and B are vectors: Y[i] = A[i].KA + B[i].KB

Navigation menu

Personal tools