Programmer Guide/SPU Reference/ADD: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 8: Line 8:
|<var>A<sub>number</sub></var>, <var>B<sub>number</sub></var>
|<var>A<sub>number</sub></var>, <var>B<sub>number</sub></var>
|<var>Y<sub>number</sub></var>
|<var>Y<sub>number</sub></var>
|<var>Y</var> = <var>A</var> &plus <nowiki>|</nowiki>
|<var>Y</var> = <var>A</var> + <var>B</var>
|-
|-
|<var>A<sub>vector</sub></var>
|<var>A<sub>vector</sub></var>,
|<var>Y<sub>vector</sub></var>
|<var>Y<sub>vector</sub></var>
|<var>Y</var>[i] = <nowiki>|</nowiki><var>A</var>[i]<nowiki>|</nowiki>
|<var>Y</var>[i] = <nowiki>|</nowiki><var>A</var>[i]<nowiki>|</nowiki>

Revision as of 10:57, 2 May 2011

Add inputs A and B

[SPU ABS A B OUT Y]
In Out Description
Anumber, Bnumber Ynumber Y = A + B
Avector, Yvector Y[i] = |A[i]|
See also

<SP-atoms>

Navigation menu

Personal tools