numerics 0.1.0
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

◆ piv

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

◆ singular

bool num::LUResult::singular = false

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