?dttrsb
?dttrsb
Solves a system of linear equations with a diagonally dominant tridiagonal coefficient matrix using the LU factorization computed by
?dttrfb
.Syntax
void
sdttrsb
(
const
char
*
trans
,
const
MKL_INT
*
n
,
const
MKL_INT
*
nrhs
,
const
float
*
dl
,
const
float
*
d
,
const
float
*
du
,
float
*
b
,
const
MKL_INT
*
ldb
,
MKL_INT
*
info
);
void
ddttrsb
(
const
char
*
trans
,
const
MKL_INT
*
n
,
const
MKL_INT
*
nrhs
,
const
double
*
dl
,
const
double
*
d
,
const
double
*
du
,
double
*
b
,
const
MKL_INT
*
ldb
,
MKL_INT
*
info
);
void
cdttrsb
(
const
char
*
trans
,
const
MKL_INT
*
n
,
const
MKL_INT
*
nrhs
,
const
MKL_Complex8
*
dl
,
const
MKL_Complex8
*
d
,
const
MKL_Complex8
*
du
,
MKL_Complex8
*
b
,
const
MKL_INT
*
ldb
,
MKL_INT
*
info
);
void
zdttrsb
(
const
char
*
trans
,
const
MKL_INT
*
n
,
const
MKL_INT
*
nrhs
,
const
MKL_Complex16
*
dl
,
const
MKL_Complex16
*
d
,
const
MKL_Complex16
*
du
,
MKL_Complex16
*
b
,
const
MKL_INT
*
ldb
,
MKL_INT
*
info
);
Include Files
- mkl.h
Description
The
?dttrsb
routine solves the following systems of linear equations with multiple right hand sides for X
:- A*X=B
- iftrans='N',
- A*TX=B
- iftrans='T',
- A*HX=B
- iftrans='C'(for complex matrices only).
Before calling this routine, call
?dttrfb
to compute the factorization of A
.Input Parameters
- trans
- Must be'N'or'T'or'C'.Indicates the form of the equations solved forX:If, thentrans='N'.A*X=BIf, thentrans='T'A*TX=B.If, thentrans='C'A*HX=B.
- n
- The order ofA;n≥0.
- nrhs
- The number of right-hand sides, that is, the number of columns inB;nrhs≥0.
- dl,d,du
- Arrays:,dl(n-1),d(n).du(n-1)The arraydlcontains the(multipliers that define the matricesn- 1)L1,L2from the factorization ofA.The arraydcontains thendiagonal elements of the upper triangular matrixUfrom the factorization ofA.The arrayducontains the (n- 1) elements of the superdiagonal ofU.
- b
- Array of size max(1,ldb*nrhs). Contains the matrixBwhose columns are the right-hand sides for the systems of equations.
- ldb
- The leading dimension ofb;.ldb≥max(1,n)
Output Parameters
- b
- Overwritten by the solution matrixX.
- info
- If, the execution is successful.info= 0If, theinfo=-ii-th parameter had an illegal value.