Programmer Guide/SPU Reference/ACNV: Difference between revisions
From STX Wiki
Jump to navigationJump to search
No edit summary |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
==<code>[SPU ACNV <var>X OP I</var> OUT <var>Y</var>]</code>== | ==<code>[SPU ACNV <var>X OP I</var> OUT <var>Y</var>]</code>== | ||
{|class="einrahmen" | {|class="einrahmen" | ||
! | !input !!description !!data type !!value type!!default value | ||
|- | |- | ||
|<var>X</var>||input data ||matrix ||variable | |||
|- | |- | ||
|<var>OP</var>||operation ||number (int.), string||constant | |||
|- | |- | ||
|<var>I</var>||index, depends on method ||number or n.c.||variable | |||
|<var> | |- | ||
!output !!description !!data type !!value type!!comment | |||
|- | |||
|<var>Y</var>||output data ||vector, matrix ||variable | |||
|} | |} | ||
;Description: | ;Description: | ||
Line 18: | Line 21: | ||
::<var>OP</var>=<code>0</code> or <code>column</code>, <var>I</var> is not connected | ::<var>OP</var>=<code>0</code> or <code>column</code>, <var>I</var> is not connected | ||
:::<var>Y<sub>vector</sub></var> = <var>X</var>[*,''t''] | :::<var>Y<sub>vector</sub></var> = <var>X</var>[*,''t''] | ||
::In the evaluation cycle ''t'' (≥0), the column ''t'' of matrix <var>X</var> is copied to the output vector <var>Y</var>. The length of the output vector is equal to the number of input rows | ::In the evaluation cycle ''t'' (≥0), the column ''t'' of matrix <var>X</var> is copied to the output vector <var>Y</var>. The length of the output vector is equal to the number of input rows. | ||
:;extract specified column: | :;extract specified column: | ||
::<var>OP</var>=<code>0</code> or <code>column</code>, <code>0</code>≤<var>I</var><number of input columns | ::<var>OP</var>=<code>0</code> or <code>column</code>, <code>0</code>≤<var>I</var><number of input columns | ||
:::<var>Y<sub>vector</sub></var> = <var>X</var>[*,<var>I</var>] | :::<var>Y<sub>vector</sub></var> = <var>X</var>[*,<var>I</var>] | ||
::In the evaluation cycle ''t'' (≥0), the | ::In each evaluation cycle, the column <var>I</var> of matrix <var>X</var> is copied to the output vector <var>Y</var>. The length of the output vector is equal to the number of input rows. | ||
:;extract rows: | |||
::<var>OP</var>=<code>1</code> or <code>row</code>, <var>I</var> is not connected | |||
:::<var>Y<sub>vector</sub></var> = <var>X</var>[''t'',*] | |||
::In the evaluation cycle ''t'' (≥0), the row ''t'' of matrix <var>X</var> is copied to the output vector <var>Y</var>. The length of the output vector is equal to the number of input columns. | |||
:;extract specified row: | |||
::<var>OP</var>=<code>1</code> or <code>row</code>, <code>0</code>≤<var>I</var><number of input rows | |||
:::<var>Y<sub>vector</sub></var> = <var>X</var>[<var>I</var>,*] | |||
::In each evaluation cycle, the row <var>I</var> of matrix <var>X</var> is copied to the output vector <var>Y</var>. The length of the output vector is equal to the number of input columns. | |||
:;transpose: | |||
::<var>OP</var>=<code>2</code> or <code>transpose</code>, <var>I</var> is not used | |||
:::<var>Y<sub>matrix</sub></var> = <var>X</var><sup>T</sup> | |||
;See also: | ;See also: | ||
<[[../#Signal Processing Atoms|SP-atoms]]> | <[[../#Signal Processing Atoms|SP-atoms]]> | ||
<!-- AN, 2.5.2011 --> | <!-- AN, 2.5.2011 --> |
Latest revision as of 12:24, 6 May 2011
Special matrix operations.
[SPU ACNV X OP I OUT Y]
input | description | data type | value type | default value |
---|---|---|---|---|
X | input data | matrix | variable | |
OP | operation | number (int.), string | constant | |
I | index, depends on method | number or n.c. | variable | |
output | description | data type | value type | comment |
Y | output data | vector, matrix | variable |
- Description
-
- extract columns
- OP=
0
orcolumn
, I is not connected- Yvector = X[*,t]
- In the evaluation cycle t (≥0), the column t of matrix X is copied to the output vector Y. The length of the output vector is equal to the number of input rows.
- extract specified column
- OP=
0
orcolumn
,0
≤I<number of input columns- Yvector = X[*,I]
- In each evaluation cycle, the column I of matrix X is copied to the output vector Y. The length of the output vector is equal to the number of input rows.
- extract rows
- OP=
1
orrow
, I is not connected- Yvector = X[t,*]
- In the evaluation cycle t (≥0), the row t of matrix X is copied to the output vector Y. The length of the output vector is equal to the number of input columns.
- extract specified row
- OP=
1
orrow
,0
≤I<number of input rows- Yvector = X[I,*]
- In each evaluation cycle, the row I of matrix X is copied to the output vector Y. The length of the output vector is equal to the number of input columns.
- transpose
- OP=
2
ortranspose
, I is not used- Ymatrix = XT
- See also
<SP-atoms>