UNPKG

611 BMarkdownView Raw
1<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
2
3# Function row
4
5Return a row from a Matrix.
6
7
8## Syntax
9
10```js
11math.row(value, index)
12```
13
14### Parameters
15
16Parameter | Type | Description
17--------- | ---- | -----------
18`value` | Array &#124; Matrix | An array or matrix
19`row` | number | The index of the row
20
21### Returns
22
23Type | Description
24---- | -----------
25Array &#124; Matrix | The retrieved row
26
27
28## Examples
29
30```js
31// get a row
32const d = [[1, 2], [3, 4]]
33math.row(d, 1) // returns [[3, 4]]
34```
35
36
37## See also
38
39[column](column.md)