Programmer Guide/SPU Reference/ACNV: Difference between revisions
From STX Wiki
Jump to navigationJump to search
No edit summary |
|||
| Line 15: | Line 15: | ||
|<var>Y</var>||output data ||vector, matrix ||variable | |<var>Y</var>||output data ||vector, matrix ||variable | ||
|} | |} | ||
;Description: | ;Description: | ||
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=
0orcolumn, 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=
0orcolumn,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=
1orrow, 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=
1orrow,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=
2ortranspose, I is not used- Ymatrix = XT
- See also
<SP-atoms>