Skip to content

num::seq::lu

Defined in header <linear/banded/banded.hpp>, <linear/factorization/lu.hpp>

banded_lu_result lu(band_mat A);  // (1)

template <std::floating_point T>
lu_result<T> lu(const mat<T> &A);  // (2)

(1) Factor a band matrix by LU with partial pivoting, in-tree: \(P A = L U\).

(2) Factor a matrix by LU with partial pivoting, by blocks: \(P A = L U\).