@skybloxsystems/ticket-bot
Version:
47 lines (31 loc) • 1.04 kB
Markdown
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
Calculate the Matrix LU decomposition with partial pivoting. Matrix `A` is decomposed in two matrices (`L`, `U`) and a
row permutation vector `p` where `A[p,:] = L * U`
```js
math.lup(A)
```
Parameter | Type | Description
--------- | ---- | -----------
`A` | Matrix &
Type | Description
---- | -----------
{L: Array &
```js
const m = [[2, 1], [1, 4]]
const r = math.lup(m)
// r = {
// L: [[1, 0], [0.5, 1]],
// U: [[2, 1], [0, 3.5]],
// P: [0, 1]
// }
```
[](slu.md),
[](lsolve.md),
[](lusolve.md),
[](usolve.md)