Solve the linear system of equations A x = b using LU decomposition.
static FVector<T,N> ltl::LUDecomposition< T, N >::solve | ( | FMatrix< T, N, N > | A, | |
FVector< T, N > | b | |||
) | [inline, static] |
Solve the linear system of equations A x = b using LU decomposition. The solution vector x is returned.
References ltl::LUDecomposition< T, N >::lubksb(), and ltl::LUDecomposition< T, N >::ludcmp().
Referenced by ltl::LUDecomposition< T, N >::invert(), and ltl::LUDecomposition< T, N >::solve().
static FMatrix<T,N,N> ltl::LUDecomposition< T, N >::solve | ( | FMatrix< T, N, N > | A, | |
FMatrix< T, N, N > & | B | |||
) | [inline, static] |
Solve the linear system of equations A x = b using LU decomposition for each column of the matrix b. The result vectors x are returned as columns of a matrix X.
References ltl::FMatrix< T, M, N >::col(), and ltl::LUDecomposition< T, N >::solve().
static FMatrix<T,N,N> ltl::LUDecomposition< T, N >::invert | ( | FMatrix< T, N, N > | A | ) | [inline, static] |
Invert the matrix A using LU decomposition.
References ltl::LUDecomposition< T, N >::solve(), and ltl::FMatrix< T, M, N >::traceVector().
void ltl::LUDecomposition< T, N >::ludcmp | ( | FMatrix< T, N, N > & | A, | |
FVector< int, N > & | Index | |||
) | [inline, static, protected] |
References ltl::sum(), and ZERO.
Referenced by ltl::LUDecomposition< T, N >::solve().
void ltl::LUDecomposition< T, N >::lubksb | ( | const FMatrix< T, N, N > & | A, | |
const FVector< int, N > & | Index, | |||
FVector< T, N > & | B | |||
) | [inline, static, protected] |
References ltl::sum().
Referenced by ltl::LUDecomposition< T, N >::solve().