函数 column #

从 Matrix 返回一列。

Syntax #

math.column(value, index)

Parameters #

Parameter Type Description
value Array | Matrix 一个数组或矩阵
column number 列的索引

Returns #

Type Description
Array | Matrix 检索到的列

Throws #

Type | Description —- | ———–

Examples #

// get a column
const d = [[1, 2], [3, 4]]
math.column(d, 1) // returns [[2], [4]]

另请参阅 #

row

Fork me on GitHub