---
layout: default
---
Function lsolveAll #
Finds all solutions of a linear equation system by forwards substitution. Matrix must be a lower triangular matrix.
`L * x = b`
Syntax #
```js
math.lsolveAll(L, b)
```
Parameters #
Parameter | Type | Description
--------- | ---- | -----------
`L` | Matrix, Array | A N x N matrix or array (L)
`b` | Matrix, Array | A column vector with the b values
Returns #
Type | Description
---- | -----------
DenseMatrix[] | Array[] | An array of affine-independent column vectors (x) that solve the linear system
Throws #
Type | Description
---- | -----------
Examples #
```js
const a = [[-2, 3], [2, 1]]
const b = [11, 9]
const x = lsolveAll(a, b) // [ [[-5.5], [20]] ]
```
See also #
[lsolve](lsolve.html),
[lup](lup.html),
[slu](slu.html),
[usolve](usolve.html),
[lusolve](lusolve.html)