f07he solves a real symmetric positive definite band system of linear equations with multiple right-hand sides,
AX=B,
where A has been factorized by f07hd.

Syntax

C#
public static void f07he(
	string uplo,
	int n,
	int kd,
	int nrhs,
	double[,] ab,
	double[,] b,
	out int info
)
Visual Basic
Public Shared Sub f07he ( _
	uplo As String, _
	n As Integer, _
	kd As Integer, _
	nrhs As Integer, _
	ab As Double(,), _
	b As Double(,), _
	<OutAttribute> ByRef info As Integer _
)
Visual C++
public:
static void f07he(
	String^ uplo, 
	int n, 
	int kd, 
	int nrhs, 
	array<double,2>^ ab, 
	array<double,2>^ b, 
	[OutAttribute] int% info
)
F#
static member f07he : 
        uplo : string * 
        n : int * 
        kd : int * 
        nrhs : int * 
        ab : float[,] * 
        b : float[,] * 
        info : int byref -> unit 

Parameters

uplo
Type: System..::..String
On entry: specifies how A has been factorized.
uplo="U"
A=UTU, where U is upper triangular.
uplo="L"
A=LLT, where L is lower triangular.
Constraint: uplo="U" or "L".
n
Type: System..::..Int32
On entry: n, the order of the matrix A.
Constraint: n0.
kd
Type: System..::..Int32
On entry: kd, the number of superdiagonals or subdiagonals of the matrix A.
Constraint: kd0.
nrhs
Type: System..::..Int32
On entry: r, the number of right-hand sides.
Constraint: nrhs0.
ab
Type: array<System..::..Double,2>[,](,)[,][,]
An array of size [dim1, dim2]
Note: dim1 must satisfy the constraint: dim1kd+1
Note: the second dimension of the array ab must be at least max1,n.
On entry: the Cholesky factor of A, as returned by f07hd.
b
Type: array<System..::..Double,2>[,](,)[,][,]
An array of size [dim1, dim2]
Note: dim1 must satisfy the constraint: dim1max1,n
Note: the second dimension of the array b must be at least max1,nrhs.
On entry: the n by r right-hand side matrix B.
On exit: the n by r solution matrix X.
info
Type: System..::..Int32%
On exit: info=0 unless the method detects an error (see [Error Indicators and Warnings]).

Description

f07he is used to solve a real symmetric positive definite band system of linear equations AX=B, the method must be preceded by a call to f07hd which computes the Cholesky factorization of A. The solution X is computed by forward and backward substitution.
If uplo="U", A=UTU, where U is upper triangular; the solution X is computed by solving UTY=B and then UX=Y.
If uplo="L", A=LLT, where L is lower triangular; the solution X is computed by solving LY=B and then LTX=Y.

References

Golub G H and Van Loan C F (1996) Matrix Computations (3rd Edition) Johns Hopkins University Press, Baltimore

Error Indicators and Warnings

Some error messages may refer to parameters that are dropped from this interface (LDAB, LDB) In these cases, an error in another parameter has usually caused an incorrect value to be inferred.
info<0
If info=-i, argument i had an illegal value. An explanatory message is output, and execution of the program is terminated.
ifail=-9000
An error occured, see message report.
ifail=-6000
Invalid Parameters value
ifail=-4000
Invalid dimension for array value
ifail=-8000
Negative dimension for array value
ifail=-6000
Invalid Parameters value
ifail=-6000
Invalid Parameters value

Accuracy

For each right-hand side vector b, the computed solution x is the exact solution of a perturbed system of equations A+Ex=b, where
  • if uplo="U", Eck+1εUTU;
  • if uplo="L", Eck+1εLLT,
ck+1 is a modest linear function of k+1, and ε is the machine precision.
If x^ is the true solution, then the computed solution x satisfies a forward error bound of the form
x-x^xck+1condA,xε
where condA,x=A-1Ax/xcondA=A-1AκA. Note that condA,x can be much smaller than condA.
Forward and backward error bounds can be computed by calling (F07HHF not in this release), and an estimate for κA (=κ1A) can be obtained by calling (F07HGF not in this release).

Parallelism and Performance

None.

Further Comments

The total number of floating-point operations is approximately 4nkr, assuming nk.
This method may be followed by a call to (F07HHF not in this release) to refine the solution and return an error estimate.
The complex analogue of this method is (F07HSF not in this release).

Example

See Also