numerics 0.1.0
Loading...
Searching...
No Matches
lu.cpp File Reference

LU dispatcher + utility functions (lu_solve, lu_det, lu_inv). More...

Go to the source code of this file.

Namespaces

namespace  num
 

Functions

LUResult num::lu (const Matrix &A, Backend backend=lapack_backend)
 
void num::lu_solve (const LUResult &f, const Vector &b, Vector &x)
 Solve \(Ax=b\) from a precomputed \(PA=LU\) factorization.
 
void num::lu_solve (const LUResult &f, const Matrix &B, Matrix &X)
 Solve \(AX=B\) from a precomputed \(PA=LU\) factorization.
 
real num::lu_det (const LUResult &f)
 Compute \(\det(A)=\det(P)^{-1}\prod_i U_{ii}\).
 
Matrix num::lu_inv (const LUResult &f)
 Compute \(A^{-1}\) by solving \(AX=I\).
 

Detailed Description

LU dispatcher + utility functions (lu_solve, lu_det, lu_inv).

Definition in file lu.cpp.