Content |
Triangular Solver (trs)
trs (defined in namespace flens::lapack) solves a system of linear equations
\[ A X = B \quad\text{or}\quad A^T X = B \]Two variants are provided:
-
For a general \(n \times n\) matrix \(A\) containing the \(LU\) factorization computed by trf.
-
For a triangular matrix \(A\).
Further subvariants are provided for cases where the right hand side \(B\) is a matrix or vector.
Variant: System of Linear Equations
Multiple Right-Hand Sides
trans |
(input) bool |
A |
(input) real or complex valued GeMatrix |
piv |
(input) integer valued DenseVector |
B |
(input/output) real or complex valued GeMatrix |
Single Right-Hand Side
trans |
(input) bool |
A |
(input) real or complex valued GeMatrix |
piv |
(input) integer valued DenseVector |
b |
(input/output) real or complex valued DenseVector |
Variant: Triangular System
Multiple Right-Hand Sides
trans |
(input) bool |
A |
(input) real or complex valued TrMatrix |
B |
(input/output) real or complex valued GeMatrix |
Single Right-Hand Side
trans |
(input) bool |
A |
(input) real or complex valued TrMatrix |
b |
(input/output) real or complex valued DenseVector |
Notes
-
Examples: lapack-getrs and lapack-trtrs.
-
trs is a port of dgetrs, zgetrs, dtrtrs and ztrtrs. Also this documentation is taken from there.