Programmer Guide/SPU Reference/ABS: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 16: Line 16:
|if <var>A</var> is a vector || &rarr; || <var>Y</var>[i] = <nowiki>|</nowiki><var>A</var>[i]<nowiki>|</nowiki>
|if <var>A</var> is a vector || &rarr; || <var>Y</var>[i] = <nowiki>|</nowiki><var>A</var>[i]<nowiki>|</nowiki>
|}
|}
;See also:
<[[../#Signal Processing Atoms|SP-atoms]]>

Revision as of 09:32, 2 May 2011

Absolute value.

[SPU ABS A OUT Y]
In
A number or vector
Out
Y same type as A
Function
if A is a number Y = |A|
if A is a vector Y[i] = |A[i]|
See also

<SP-atoms>

Navigation menu

Personal tools