Reaktoro
A unified framework for modeling chemically reactive systems

The class that computes the full pivoting Auxiliary struct for storing the LU decomposition of a matrix A. More...

#include <LU.hpp>

Public Member Functions

 LU ()
 Construct a default LU instance.
 
 LU (MatrixConstRef A)
 Construct a LU instance with given matrix.
 
 LU (MatrixConstRef A, VectorConstRef W)
 Construct a LU instance with given matrix and scaling column-weights.
 
auto empty () const -> bool
 Return true if empty.
 
auto compute (MatrixConstRef A) -> void
 Compute the LU decomposition of the given matrix.
 
auto compute (MatrixConstRef A, VectorConstRef W) -> void
 Compute the LU decomposition of the given matrix with scaling column-weights.
 
auto solve (MatrixConstRef b) -> Matrix
 Solve the linear system AX = B using the calculated LU decomposition.
 
auto trsolve (MatrixConstRef B) -> Matrix
 Solve the linear system tr(A)X = B using the calculated LU decomposition.
 

Public Attributes

Matrix A_last
 The last decomposed matrix A.
 
Vector W_last
 The last weights used for column scaling.
 
Matrix L
 The lower triangular matrix L in the LU decomposition of the matrix PAQ = LU.
 
Matrix U
 The upper triangular matrix U in the LU decomposition of the matrix PAQ = LU.
 
PermutationMatrix P
 The permutation matrix P in the LU decomposition of the matrix PAQ = LU.
 
PermutationMatrix Q
 The permutation matrix Q in the LU decomposition of the matrix PAQ = LU.
 
Index rank
 The rank of the matrix A
 

Detailed Description

The class that computes the full pivoting Auxiliary struct for storing the LU decomposition of a matrix A.


The documentation for this struct was generated from the following files:
  • Reaktoro/Math/LU.hpp
  • Reaktoro/Math/LU.cpp