numerics
Loading...
Searching...
No Matches
lu.cpp File Reference
#include "linalg/factorization/lu.hpp"
#include <cmath>
#include <algorithm>

Go to the source code of this file.

Namespaces

namespace  num
 

Functions

LUResult num::lu (const Matrix &A)
 LU factorization of a square matrix A with partial pivoting.
 
void num::lu_solve (const LUResult &f, const Vector &b, Vector &x)
 Solve A*x = b using a precomputed LU factorization.
 
void num::lu_solve (const LUResult &f, const Matrix &B, Matrix &X)
 Solve A*X = B for multiple right-hand sides.
 
real num::lu_det (const LUResult &f)
 Determinant of A from its LU factorization.
 
Matrix num::lu_inv (const LUResult &f)
 Inverse of A from its LU factorization.