Programmer Guide/SPU Reference/SUM: Difference between revisions
From STX Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
|<var>A<sub>number</sub></var> | |<var>A<sub>number</sub></var> | ||
|<var>Y<sub>number</sub></var> | |<var>Y<sub>number</sub></var> | ||
|< | |<math>Y=A</math> | ||
|- | |- | ||
|<var>A<sub>vector</sub></var> | |<var>A<sub>vector</sub></var> | ||
|<var>Y<sub>number</sub></var> | |<var>Y<sub>number</sub></var> | ||
|< | |<math>Y=\sum_{i=0}^{n-1}A[i]</math> | ||
|} | |} | ||
with: n = length of <var>A<sub>vector</sub></var> | with: n = length of <var>A<sub>vector</sub></var> |
Latest revision as of 08:18, 6 May 2011
Sum of elements of input A.
[SPU SUM A OUT Y]
In | Out | Description |
---|---|---|
Anumber | Ynumber | |
Avector | Ynumber |
with: n = length of Avector
- See also
<SP-atoms>