NAG Library Routine Document
F07ARF (ZGETRF) computes the factorization of a complex by matrix.
||M, N, LDA, IPIV(min(M,N)), INFO
The routine may be called by its
F07ARF (ZGETRF) forms the factorization of a complex by matrix as , where is a permutation matrix, is lower triangular with unit diagonal elements (lower trapezoidal if ) and is upper triangular (upper trapezoidal if ). Usually is square , and both and are triangular. The routine uses partial pivoting, with row interchanges.
Golub G H and Van Loan C F (1996) Matrix Computations (3rd Edition) Johns Hopkins University Press, Baltimore
- 1: – INTEGERInput
On entry: , the number of rows of the matrix .
- 2: – INTEGERInput
On entry: , the number of columns of the matrix .
- 3: – COMPLEX (KIND=nag_wp) arrayInput/Output
the second dimension of the array A
must be at least
On entry: the by matrix .
On exit: the factors and from the factorization ; the unit diagonal elements of are not stored.
- 4: – INTEGERInput
: the first dimension of the array A
as declared in the (sub)program from which F07ARF (ZGETRF) is called.
- 5: – INTEGER arrayOutput
On exit: the pivot indices that define the permutation matrix. At the
th step, if then row of the matrix was interchanged with row , for . indicates that, at the th step, a row interchange was not required.
- 6: – INTEGEROutput
unless the routine detects an error (see Section 6
6 Error Indicators and Warnings
If , argument had an illegal value. An explanatory message is output, and execution of the program is terminated.
Element of the diagonal is exactly zero.
The factorization has been completed, but the factor is exactly singular, and division by zero will occur if it is used to solve
a system of equations.
The computed factors
are the exact factors of a perturbed matrix
is a modest linear function of
is the machine precision
8 Parallelism and Performance
F07ARF (ZGETRF) is threaded by NAG for parallel execution in multithreaded implementations of the NAG Library.
F07ARF (ZGETRF) makes calls to BLAS and/or LAPACK routines, which may be threaded within the vendor library used by this implementation. Consult the documentation for the vendor library for further information.
Please consult the X06 Chapter Introduction
for information on how to control and interrogate the OpenMP environment used within this routine. Please also consult the Users' Note
for your implementation for any additional implementation-specific information.
The total number of real floating-point operations is approximately if (the usual case), if and if .
A call to this routine with
may be followed by calls to the routines:
The real analogue of this routine is F07ADF (DGETRF)
This example computes the
factorization of the matrix
10.1 Program Text
Program Text (f07arfe.f90)
10.2 Program Data
Program Data (f07arfe.d)
10.3 Program Results
Program Results (f07arfe.r)