Function row #
从 Matrix 中返回一行。
Syntax #
math.row(value, index)
Parameters #
| Parameter | Type | Description |
|---|---|---|
value |
Array | Matrix | 一个数组或矩阵 |
row |
number | 行的索引 |
Returns #
| Type | Description |
|---|---|
| Array | Matrix | 检索到的行 |
Throws #
Type | Description —- | ———–
Examples #
// get a row
const d = [[1, 2], [3, 4]]
math.row(d, 1) // returns [[3, 4]]