|
NAG[f07vec] NAG[nag_dtbtrs] - Solution of real band triangular system of linear equations, multiple right-hand sides
|
|
Calling Sequence
f07vec(uplo, trans, diag, kd, ab, b, 'n'=n, 'nrhs'=nrhs, 'fail'=fail)
nag_dtbtrs(. . .)
Parameters
|
uplo - String;
|
|
|
On entry: indicates whether is upper or lower triangular.
|
|
is upper triangular.
|
|
is lower triangular.
|
|
Constraint: "Nag_Upper" or "Nag_Lower". .
|
|
|
trans - String;
|
|
|
On entry: indicates the form of the equations.
|
|
The equations are of the form .
|
|
Constraint: "Nag_NoTrans", "Nag_Trans" or "Nag_ConjTrans". .
|
|
|
diag - String;
|
|
|
On entry: indicates whether is a non-unit or unit triangular matrix.
|
|
is a non-unit triangular matrix.
|
|
Constraint: "Nag_NonUnitDiag" or "Nag_UnitDiag". .
|
|
|
kd - integer;
|
|
|
Constraint: . .
|
|
|
ab - Matrix(1..dim1, 1..dim2, datatype=float[8], order=order);
|
|
|
Note: this array may be supplied in Fortran_order or C_order , as specified by order. All array parameters must use a consistent order.
|
|
|
b - Matrix(1..dim1, 1..dim2, datatype=float[8], order=order);
|
|
|
Note: this array may be supplied in Fortran_order or C_order , as specified by order. All array parameters must use a consistent order.
|
|
|
'n'=n - integer; (optional)
|
|
|
Default value: the second dimension of the array ab.
|
|
On entry: , the order of the matrix .
|
|
Constraint: . .
|
|
|
'nrhs'=nrhs - integer; (optional)
|
|
|
Default value: the second dimension of the array b.
|
|
On entry: , the number of right-hand sides.
|
|
Constraint: . .
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_dtbtrs (f07vec) solves a real triangular band system of linear equations with multiple right-hand sides, or .
|
|
Description
|
|
nag_dtbtrs (f07vec) solves a real triangular band system of linear equations or .
|
|
Error Indicators and Warnings
|
|
"NE_ALLOC_FAIL"
Dynamic memory allocation failed.
"NE_BAD_PARAM"
On entry, argument had an illegal value.
"NE_INT"
On entry, . Constraint: .
On entry, . Constraint: .
On entry, . Constraint: .
"NE_INTERNAL_ERROR"
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please consult NAG for assistance.
"NE_SINGULAR"
The matrix is singular.
|
|
Further Comments
|
|
The total number of floating-point operations is approximately if .
The complex analogue of this function is f07vsc (nag_ztbtrs).
|
|
|
Examples
|
|
>
|
uplo := "Nag_Lower":
trans := "Nag_NoTrans":
diag := "Nag_NonUnitDiag":
n := 4:
kd := 1:
nrhs := 2:
ab := Matrix([[0, -4.16, -2.25, 4.78], [5.86, 6.32, -4.82, 0.16]], datatype=float[8], order='C_order'):
b := Matrix([[-16.64, -4.16], [-13.78, -16.59], [13.1, -4.94], [-14.14, -9.960000000000001]], datatype=float[8], order='C_order'):
NAG:-f07vec(uplo, trans, diag, kd, ab, b, 'n' = n, 'nrhs' = nrhs):
|
|
|
See Also
|
|
Golub G H and Van Loan C F (1996) Matrix Computations (3rd Edition) Johns Hopkins University Press, Baltimore
Higham N J (1989) The accuracy of solutions to triangular systems SIAM J. Numer. Anal. 26 1252–1265
f07 Chapter Introduction.
NAG Toolbox Overview.
NAG Web Site.
|
|