Click or drag to resize

DGBTRSRun Method

Purpose ======= DGBTRS solves a system of linear equations A * X = B or A' * X = B with a general band matrix A using the LU factorization computed by DGBTRF.

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 KL,
	int KU,
	int NRHS,
	double[] AB,
	int offset_ab,
	int LDAB,
	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.
KL  Int32
(input) INTEGER The number of subdiagonals within the band of A. KL .GE. 0.
KU  Int32
(input) INTEGER The number of superdiagonals within the band of A. KU .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.
AB  Double
(input) DOUBLE PRECISION array, dimension (LDAB,N) Details of the LU factorization of the band matrix A, as computed by DGBTRF. U is stored as an upper triangular band matrix with KL+KU superdiagonals in rows 1 to KL+KU+1, and the multipliers used during the factorization are stored in rows KL+KU+2 to 2*KL+KU+1.
offset_ab  Int32
 
LDAB  Int32
(input) INTEGER The leading dimension of the array AB. LDAB .GE. 2*KL+KU+1.
IPIV  Int32
(input) INTEGER array, dimension (N) The pivot indices; 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