Click or drag to resize

DGETRSRun Method

Purpose ======= DGETRS solves a system of linear equations A * X = B or A' * X = B with a general N-by-N matrix A using the LU factorization computed by DGETRF.

Namespace: DotNumerics.LinearAlgebra.CSLapack
Assembly: DWSIM.MathOps.DotNumerics (in DWSIM.MathOps.DotNumerics.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public void Run(
	string TRANS,
	int N,
	int NRHS,
	double[] A,
	int offset_a,
	int LDA,
	int[] IPIV,
	int offset_ipiv,
	ref double[] B,
	int offset_b,
	int LDB,
	ref int INFO
)
Request Example View Source

Parameters

TRANS  String
(input) CHARACTER*1 Specifies the form of the system of equations: = 'N': A * X = B (No transpose) = 'T': A'* X = B (Transpose) = 'C': A'* X = B (Conjugate transpose = Transpose)
N  Int32
(input) INTEGER The order of the matrix A. N .GE. 0.
NRHS  Int32
(input) INTEGER The number of right hand sides, i.e., the number of columns of the matrix B. NRHS .GE. 0.
A  Double
(input) DOUBLE PRECISION array, dimension (LDA,N) The factors L and U from the factorization A = P*L*U as computed by DGETRF.
offset_a  Int32
 
LDA  Int32
(input) INTEGER The leading dimension of the array A. LDA .GE. max(1,N).
IPIV  Int32
(input) INTEGER array, dimension (N) The pivot indices from DGETRF; for 1.LE.i.LE.N, row i of the matrix was interchanged with row IPIV(i).
offset_ipiv  Int32
 
B  Double
(input/output) DOUBLE PRECISION array, dimension (LDB,NRHS) On entry, the right hand side matrix B. On exit, the solution matrix X.
offset_b  Int32
 
LDB  Int32
(input) INTEGER The leading dimension of the array B. LDB .GE. max(1,N).
INFO  Int32
(output) INTEGER = 0: successful exit .LT. 0: if INFO = -i, the i-th argument had an illegal value
See Also