ACNV
From STX Wiki
Jump to navigationJump to search
Special matrix operations.
[SPU ACNV X OP I OUT Y]
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
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>