Programmer Guide/SPU Reference/MIX: 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}}}}
Sum of elements of input <var>A</var>.
Mix inputs (weighted addition).
==<code>[SPU MIX <var>A KA B KB</var> OUT <var>Y</var>]</code>==
==<code>[SPU MIX <var>A KA B KB</var> OUT <var>Y</var>]</code>==
{|class="einrahmen"
{|class="einrahmen"

Revision as of 09:24, 6 May 2011

Mix inputs (weighted addition).

[SPU MIX A KA B KB OUT Y]

In Out Description
Anumber, Bnumber Ynumber {\displaystyle Y=A.KA+B.KB}
Avector, Bvector Yvector {\displaystyle Y[i]=A[i].KA+B[i].KB}

with: 0 ≤ i < length of Avector

See also

<SP-atoms>

Navigation menu

Personal tools