Programmer Guide/SPU Reference/DOT: 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 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
Dot product of <var>A</var> and <var>B<var>. | Dot product of <var>A</var> and <var>B</var>. | ||
==<code>[SPU | ==<code>[SPU DOT <var>A B</var> OUT <var>Y</var>]</code>== | ||
{|class="einrahmen" | {|class="einrahmen" | ||
!In !!Out !!Description | !In !!Out !!Description | ||
Line 7: | Line 7: | ||
|<var>A<sub>number</sub></var>, <var>B<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> | ||
|< | |<math>Y=A.B</math> | ||
|- | |- | ||
|<var>A<sub>vector</sub></var> | |<var>A<sub>vector</sub></var>, <var>B<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].B[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:29, 6 May 2011
Dot product of A and B.
[SPU DOT A B OUT Y]
In | Out | Description |
---|---|---|
Anumber, Bnumber | Ynumber | |
Avector, Bvector | Ynumber |
with: n = length of Avector
- See also
<SP-atoms>