Programmer Guide/SPU Reference/SUM: Difference between revisions
From STX Wiki
Jump to navigationJump to search
(initial import) |
No edit summary |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
Sum of elements of input <var>A</var>. | |||
==<code>[SPU SUM <var>A</var> OUT <var>Y</var>]</code>== | |||
== | {|class="einrahmen" | ||
!In !!Out !!Description | |||
<code>SUM <var>A</var></code> | |||
{| | |||
|- | |- | ||
|A | |<var>A<sub>number</sub></var> | ||
|<var>Y<sub>number</sub></var> | |||
|<math>Y=A</math> | |||
|<var>Y< | |||
|Y = | |||
|- | |- | ||
| | |<var>A<sub>vector</sub></var> | ||
|Y | |<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> | |||
;See also: | |||
<[[../#Signal Processing Atoms|SP-atoms]]> | |||
<!-- AN, 2.5.2011 --> |
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>