matrix get-row for filters
Extract a row from a matrix.
Signature
> matrix get-row {flags} (index)
Parameters
index: The row index to extract (0-based).
Input/output types:
| input | output |
|---|---|
| matrix | list<float> |
Examples
Get the first row of a 2x3 matrix
> matrix zeros 2 3 | matrix set-row 0 [1.0 2.0 3.0] | matrix get-row 0 | to nuon
[1.0, 2.0, 3.0]Get the second row of a 2x2 identity matrix
> matrix identity 2 | matrix get-row 1 | to nuon
[0.0, 1.0]