Function usolveAll #
通过后向替换查找线性方程组的所有解。矩阵必须是上三角矩阵。
U * x = b
Syntax #
math.usolveAll(U, b)
Parameters #
| Parameter | Type | Description |
|---|---|---|
U |
矩阵, 数组 | 一个 N x N 的矩阵或数组 (U) |
b |
矩阵, 数组 | 一个包含 b 值的列向量 |
Returns #
| Type | Description |
|---|---|
| DenseMatrix[] | Array[] | 一组仿射无关的列向量 (x),它们解决了线性方程组 |
Throws #
Type | Description —- | ———–
Examples #
const a = [[-2, 3], [2, 1]]
const b = [11, 9]
const x = usolveAll(a, b) // [ [[8], [9]] ]