Function matrixFromRows #
从向量创建密集矩阵,每个向量作为单独的行。如果您传入列向量,它们将被转置(但不会共轭!)。
Syntax #
math.matrixFromRows(...arr)
math.matrixFromRows(row1, row2)
math.matrixFromRows(row1, row2, row3)
Parameters #
| Parameter | Type | Description |
|---|---|---|
rows |
… Array | Matrix | 多个行 |
Returns #
| Type | Description |
|---|---|
| number[][] | Matrix | 如果至少有一个参数是数组,则返回一个数组。 |
Throws #
Type | Description —- | ———–
Examples #
math.matrixFromRows([1, 2, 3], [[4],[5],[6]])
math.matrixFromRows(...vectors)