new Ycc.Math.Matrix(data, m, n)
矩阵的构造方法。
| Name | Type | Description |
|---|---|---|
data |
array | 矩阵所有行拼接的数组 |
m |
number | 行数 |
n |
number | 列数 |
Methods
-
dot(M)
-
矩阵点乘法
Name Type Description MYcc.Math.Matrix 另一个矩阵 -
get(i, j){number}
-
获取矩阵i行j列的元素。 注:i,i下标从1开始
Name Type Description ijReturns:
Type Description number -
set(i, j, val)
-
设置矩阵i行j列的元素为val 注:i,i下标从1开始
Name Type Description ijval