f07hd computes the Cholesky factorization of a real symmetric positive definite band matrix.
Syntax
C# |
---|
public static void f07hd( string uplo, int n, int kd, double[,] ab, out int info ) |
Visual Basic |
---|
Public Shared Sub f07hd ( _ uplo As String, _ n As Integer, _ kd As Integer, _ ab As Double(,), _ <OutAttribute> ByRef info As Integer _ ) |
Visual C++ |
---|
public: static void f07hd( String^ uplo, int n, int kd, array<double,2>^ ab, [OutAttribute] int% info ) |
F# |
---|
static member f07hd : uplo : string * n : int * kd : int * ab : float[,] * info : int byref -> unit |
Parameters
- uplo
- Type: System..::..StringOn entry: specifies whether the upper or lower triangular part of is stored and how is to be factorized.
- The upper triangular part of is stored and is factorized as , where is upper triangular.
- The lower triangular part of is stored and is factorized as , 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: .
- 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 by symmetric positive definite band matrix .The matrix is stored in rows to , more precisely,
- if , the elements of the upper triangle of within the band must be stored with element in ;
- if , the elements of the lower triangle of within the band must be stored with element in
On exit: the upper or lower triangle of is overwritten by the Cholesky factor or as specified by uplo, using the same storage format as described above.
- info
- Type: System..::..Int32%On exit: unless the method detects an error (see [Error Indicators and Warnings]).
Description
f07hd forms the Cholesky factorization of a real symmetric positive definite band matrix either as if or if , where (or ) is an upper (or lower) triangular band matrix with the same number of superdiagonals (or subdiagonals) as .
References
Demmel J W (1989) On floating-point errors in Cholesky LAPACK Working Note No. 14 University of Tennessee, Knoxville
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) 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.
-
The leading minor of order is not positive definite and the factorization could not be completed. Hence itself is not positive definite. This may indicate an error in forming the matrix . There is no method specifically designed to factorize a symmetric band matrix which is not positive definite; the matrix must be treated either as a nonsymmetric band matrix, by calling f07bd or as a full symmetric matrix, by calling f07md.
Accuracy
If , the computed factor is the exact factor of a perturbed matrix , where
is a modest linear function of , and is the machine precision.
If , a similar statement holds for the computed factor . It follows that .
Parallelism and Performance
None.
Further Comments
The total number of floating-point operations is approximately , assuming .
A call to f07hd may be followed by calls to the methods:
- f07he to solve ;
- (F07HGF not in this release) to estimate the condition number of .
The complex analogue of this method is (F07HRF not in this release).
Example
This example computes the Cholesky factorization of the matrix , where
Example program (C#): f07hde.cs