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