UCFD_SPARSE  v1.1
Documentation
Loading...
Searching...
No Matches
inverse.h File Reference

Header file for LU Decomposition/Substitution. More...

#include "config.h"
Include dependency graph for 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...
 

Detailed Description

Header file for LU Decomposition/Substitution.

Definition in file inverse.h.

Function Documentation

◆ ludcmp()

void ludcmp ( int  n,
UCFD_FLOAT  A[n][n] 
)

LU Decomposition function.

Parameters
nDimension of the A matrix
ATarget matrix to decompose

Decompose matrix A into lower and upper triangular matrix

Definition at line 37 of file inverse.c.

◆ lusub()

void lusub ( int  n,
UCFD_FLOAT  LU[n][n],
UCFD_FLOAT b 
)

Forward/Backward Substitution function.

Parameters
nDimension of the matrix
LULU decomposed matrix
bRight-hand-side vector

This function performs Forward/Backward substitution of LU decomposed matrix.

Definition at line 74 of file inverse.c.