numerics
Loading...
Searching...
No Matches
num::LUResult Struct Reference

Result of an LU factorization with partial pivoting (PA = LU) More...

#include <lu.hpp>

Public Attributes

Matrix LU
 
std::vector< idxpiv
 
bool singular = false
 

Detailed Description

Result of an LU factorization with partial pivoting (PA = LU)

L and U are stored packed in a single matrix:

  • U occupies the upper triangle (including the diagonal)
  • L occupies the strict lower triangle (diagonal of L is implicitly 1)

piv[k] = the row index that was swapped into position k at step k. singular is set if any diagonal of U is below the tolerance 1e-14.

Definition at line 19 of file lu.hpp.

Member Data Documentation

◆ LU

Matrix num::LUResult::LU

Definition at line 20 of file lu.hpp.

Referenced by num::lu().

◆ piv

std::vector<idx> num::LUResult::piv

Definition at line 21 of file lu.hpp.

◆ singular

bool num::LUResult::singular = false

Definition at line 22 of file lu.hpp.


The documentation for this struct was generated from the following file: