|
tesseract++ 0.0.1
N-dimensional tensor library for embedded systems
|
LU decomposition with partial pivoting for square matrices. More...
#include "config.h"#include "utilities/expected.h"#include "matrix_traits.h"#include "fused/fused_matrix.h"#include "fused/fused_vector.h"#include "math/math_utils.h"

Go to the source code of this file.
Classes | |
| struct | matrix_algorithms::LUResult< T, N > |
| Result of LU decomposition with partial pivoting. More... | |
Namespaces | |
| namespace | matrix_algorithms |
Functions | |
| template<typename T , my_size_t N> | |
| Expected< LUResult< T, N >, MatrixStatus > | matrix_algorithms::lu (const FusedMatrix< T, N, N > &A, T tol=T(PRECISION_TOLERANCE)) |
| Compute the LU decomposition of a square matrix with partial pivoting. | |
| template<typename T , my_size_t N> | |
| LUResult< T, N > | matrix_algorithms::lu_or_die (const FusedMatrix< T, N, N > &A) |
| LU decomposition — abort on failure. | |
LU decomposition with partial pivoting for square matrices.
Decomposes A into P·A = L·U where:
The compact representation stores L and U in a single N×N matrix (LAPACK-style). Accessor methods L() and U() extract separate matrices when needed.
Complexity: O(2N³/3) multiply-adds, O(N) comparisons for pivoting.