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..::..StringOn entry: specifies how has been factorized.
- , where is upper triangular.
- , where is lower triangular.
Constraint: or .
- n
- Type: System..::..Int32On entry: , the order of the matrix .Constraint: .
- kd
- Type: System..::..Int32On entry: , the number of superdiagonals or subdiagonals of the matrix .Constraint: .
- nrhs
- Type: System..::..Int32On entry: , the number of right-hand sides.Constraint: .
- ab
- Type: array<System..::..Double,2>[,](,)[,][,]An array of size [dim1, dim2]Note: dim1 must satisfy the constraint:Note: the second dimension of the array ab must be at least .On entry: the Cholesky factor of , as returned by f07hd.
- b
- Type: array<System..::..Double,2>[,](,)[,][,]An array of size [dim1, dim2]Note: dim1 must satisfy the constraint:Note: the second dimension of the array b must be at least .On entry: the by right-hand side matrix .On exit: the by solution matrix .
- info
- Type: System..::..Int32%On exit: 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 , the method must be preceded by a call to f07hd which computes the Cholesky factorization of . The solution is computed by forward and backward substitution.
If , , where is upper triangular; the solution is computed by solving and then .
If , , where is lower triangular; the solution is computed by solving and then .
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.
- If , argument had an illegal value. An explanatory message is output, and execution of the program is terminated.
Accuracy
For each right-hand side vector , the computed solution is the exact solution of a perturbed system of equations , where
- if , ;
- if , ,
If is the true solution, then the computed solution satisfies a forward error bound of the form
where . Note that can be much smaller than .
Forward and backward error bounds can be computed by calling (F07HHF not in this release), and an estimate for () 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 , assuming .
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).