Programmer Guide/SPU Reference/ADD: Difference between revisions
From STX Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
Add inputs <var>A</var> and <var>B</var> | Add inputs <var>A</var> and <var>B</var> | ||
;<code>[SPU ABS <var>A</var> OUT <var>Y</var>]</code>: | ;<code>[SPU ABS <var>A B</var> OUT <var>Y</var>]</code>: | ||
{|class="einrahmen" | {|class="einrahmen" | ||
!In !!Out !!Description | !In !!Out !!Description | ||
|- | |- | ||
|<var>A<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>Y</var> = <var>A</var> &pl <nowiki>|</nowiki> | ||
|- | |- | ||
|<var>A<sub>vector</sub></var> | |<var>A<sub>vector</sub></var> |
Revision as of 10:49, 2 May 2011
Add inputs A and B
[SPU ABS A B OUT Y]
In | Out | Description |
---|---|---|
Anumber, Bnumber | Ynumber | Y = A &pl | |
Avector | Yvector | Y[i] = |A[i]| |
- See also
<SP-atoms>