Back to Linear Algebra
lu
LU factorization with partial pivoting.
Syntax
lu(A) → r
Backends
TypeScriptLAPACKNative BinaryWebAssembly
Description
LU factorization with partial pivoting.
Parameters
| Name | Description |
|---|---|
| A | Input matrix |
Returns
Tuple (L, U, P) of lower, upper, and permutation matrices
Examples
Try It
>> lu([1, 2; 3, 4])