Compute matrix inverse using LU Decomposition, and forward/backward substitution.
More...
#include "inverse.h"
Go to the source code of this file.
Functions | |
| void | ludcmp (int n, UCFD_FLOAT A[n][n]) |
| LU Decomposition function. More... | |
| void | lusub (int n, UCFD_FLOAT LU[n][n], UCFD_FLOAT *b) |
| Forward/Backward Substitution function. More... | |
Compute matrix inverse using LU Decomposition, and forward/backward substitution.
======================================================================================================================
This file contains LU Decomposition function and substitution function.
(1) LU Decomposition : ludcmp
Decompose the input matrix A by Lower/Upper triangular matrix.
A = LU
(2) Substitution : lusubst
Solve Ax = b by using forward/backward substitution.
Input vector `b` is overwritten with the solution vector `x`.
Row-major format. Definition in file inverse.c.
| void ludcmp | ( | int | n, |
| UCFD_FLOAT | A[n][n] | ||
| ) |
| void lusub | ( | int | n, |
| UCFD_FLOAT | LU[n][n], | ||
| UCFD_FLOAT * | b | ||
| ) |