Solves a triangular system of the form
A * X = B or AT * X = B,
where A is a triangular matrix of order N, and B is an N-by-NRHS
matrix.
Namespace: Extreme.Mathematics.LinearAlgebra.ImplementationAssembly: Extreme.Numerics.Generic.Net40 (in Extreme.Numerics.Generic.Net40.dll) Version: 6.0.16073.0 (6.0.16096.0)
public override void TriangularSolve(
MatrixTriangle storedTriangle,
TransposeOperation trans,
MatrixDiagonal diag,
int n,
int nrhs,
Array2D<T> a,
Array2D<T> b,
out int info
)
Public Overrides Sub TriangularSolve (
storedTriangle As MatrixTriangle,
trans As TransposeOperation,
diag As MatrixDiagonal,
n As Integer,
nrhs As Integer,
a As Array2D(Of T),
b As Array2D(Of T),
<OutAttribute> ByRef info As Integer
)
public:
virtual void TriangularSolve(
MatrixTriangle storedTriangle,
TransposeOperation trans,
MatrixDiagonal diag,
int n,
int nrhs,
Array2D<T> a,
Array2D<T> b,
[OutAttribute] int% info
) override
abstract TriangularSolve :
storedTriangle : MatrixTriangle *
trans : TransposeOperation *
diag : MatrixDiagonal *
n : int *
nrhs : int *
a : Array2D<'T> *
b : Array2D<'T> *
info : int byref -> unit
override TriangularSolve :
storedTriangle : MatrixTriangle *
trans : TransposeOperation *
diag : MatrixDiagonal *
n : int *
nrhs : int *
a : Array2D<'T> *
b : Array2D<'T> *
info : int byref -> unit
Parameters
- storedTriangle
- Type: Extreme.MathematicsMatrixTriangle
= 'U': A is upper triangular;
= 'L': A is lower triangular.
- trans
- Type: Extreme.MathematicsTransposeOperation
Specifies the form of the system of equations:
= 'N': A * X = B (No transpose)
= 'T': AT * X = B (Transpose)
= 'C': AH * X = B (Conjugate transpose = Transpose)
- diag
- Type: Extreme.MathematicsMatrixDiagonal
= 'N': A is non-unit triangular;
= 'U': A is unit triangular.
- n
- Type: SystemInt32
The order of the matrix A. N >= 0.
- nrhs
- Type: SystemInt32
The number of right hand sides, i.e., the number of columns
of the matrix B. NRHS >= 0.
- a
- Type: Extreme.CollectionsArray2DT
Dimension (LDA,N)
The triangular matrix A. If UPLO = 'U', the leading N-by-N
upper triangular part of the array A contains the upper
triangular matrix, and the strictly lower triangular part of
A is not referenced. If UPLO = 'L', the leading N-by-N lower
triangular part of the array A contains the lower triangular
matrix, and the strictly upper triangular part of A is not
referenced. If DIAG = 'U', the diagonal elements of A are
also not referenced and are assumed to be 1.
The leading dimension of the array A. LDA >= max(1,N).
- b
- Type: Extreme.CollectionsArray2DT
Dimension (LDB,NRHS)
On entry, the right hand side matrix B.
On exit, if info = 0, the solution matrix X.
The leading dimension of the array B. LDB >= max(1,N).
- info
- Type: SystemInt32
info is INTEGER
= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
> 0: if info = i, the i-th diagonal element of A is zero,
indicating that the matrix is singular and the solutions
X have not been computed.
A check is made to verify that A is nonsingular.
This method corresponds to the LAPACK routine DTRTRS.
Numerical Libraries
Supported in: 6.0
Reference