dlib.math.linsolve

Linear equation system solvers

Description: A system is given in matrix form:

Ax = b

For example:

x + 3y - 2z = 5
3x + 5y + 6z = 7
2x + 4y + 3z = 8

For this system, A (coefficient matrix) will be

[1, 3, -2]
[3, 5,  6]
[2, 4,  3]

And b (right side vector) will be

[5, 7, 8]

x is a vector of unknowns:

[x, y, z]

Members

Functions

solve
void solve(Matrix!(T, N) a, Vector!(T, N) x, Vector!(T, N) b)

Solve Ax = b directly using LUP decomposition

solveLU
void solveLU(Matrix!(T, N) L, Matrix!(T, N) U, Vector!(T, N) x, Vector!(T, N) b)

Solve LUx = b directly

Meta

Authors

Timur Gafarov