|
tesseract++ 0.0.1
N-dimensional tensor library for embedded systems
|
Matrix inverse with compile-time dispatch. More...
#include "config.h"#include "utilities/expected.h"#include "matrix_traits.h"#include "algorithms/decomposition/lu.h"#include "algorithms/solvers/triangular_solve.h"#include "math/math_utils.h"

Go to the source code of this file.
Namespaces | |
| namespace | matrix_algorithms |
Functions | |
| template<typename T , my_size_t N> | |
| Expected< FusedMatrix< T, N, N >, MatrixStatus > | matrix_algorithms::inverse (const FusedMatrix< T, N, N > &A) |
| Compute the inverse of a square matrix. | |
| template<typename T , my_size_t N> | |
| FusedMatrix< T, N, N > | matrix_algorithms::inverse_or_die (const FusedMatrix< T, N, N > &A) |
| Matrix inverse — abort on failure. | |
Matrix inverse with compile-time dispatch.
Small sizes (1×1, 2×2, 3×3, 4×4) use direct adjugate/det formulas — O(1), fully unrolled, no LU overhead.
Generic path (N>4) uses LU decomposition:
Complexity: O(1) for N≤4, O(5N³/3) for N>4.