Programmer Guide/SPU Reference/ACNV: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 2: Line 2:
Special matrix operations.
Special matrix operations.
==<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"
!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
|-
!output !!description !!data type !!value type!!comment
|-
|<var>Y</var>||output data ||vector, matrix ||variable
|}
{|class="einrahmen"
{|class="einrahmen"
!In:
!In:

Revision as of 12:23, 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


In: X input matrix
OP a number or string; selects operation to be performed
I optional row or column index
Out: Y vector or matrix; depends on OP and I
Description
extract columns
OP=0 or column, 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 or column, 0I<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 or row, 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 or row, 0I<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 or transpose, I is not used
Ymatrix = XT
See also

<SP-atoms>

Navigation menu

Personal tools