Reaktoro  A unified framework for modeling chemically reactive systems
Reaktoro::LU Struct Reference

## Detailed Description

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

#include <LU.hpp>

## Public Member Functions

LU ()
Construct a default LU instance.

LU (const Matrix &A)
Construct a LU instance with given matrix.

LU (const Matrix &A, const Vector &W)
Construct a LU instance with given matrix and scaling column-weights.

auto empty () const -> bool
Return true if empty.

auto compute (const Matrix &A) -> void
Compute the LU decomposition of the given matrix.

auto compute (const Matrix &A, const Vector &W) -> void
Compute the LU decomposition of the given matrix with scaling column-weights.

auto solve (const Matrix &b) -> Matrix
Solve the linear system AX = B using the calculated LU decomposition.

auto trsolve (const Matrix &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

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