Programmer Guide/SPU Reference/SUB: 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
Contents
SUB
Usage:
SUB A B
Inputs:
A | number or vector |
B | number or vector |
Outputs:
Y | number or vector (same type as A) |
Function:
Subtract input B from A.
If A and B are numbers: | Y = A-B |
If A is a vector and B a number: | Y[i] = A[i]-B |
If A and B are vectors: | Y[i] = A[i]-B[i] |