f11mdf computes a column permutation suitable for
factorization (by f11mef) of a real sparse matrix in compressed column (Harwell–Boeing) format and applies it to the matrix. This routine must be called prior to f11mef.
The routine may be called by the names f11mdf or nagf_sparse_direct_real_gen_setup.
Given a sparse matrix in compressed column (Harwell–Boeing) format and a choice of column permutation schemes, the routine computes those data structures that will be needed by the
factorization routine f11mef and associated routines f11mmf, f11mff and f11mhf. The column permutation choices are:
original order (that is, no permutation);
a permutation, computed by the routine, designed to minimize fill-in during the factorization.
The algorithm for this computed permutation is based on the approximate minimum degree column ordering algorithm COLAMD. The computed permutation is not sensitive to the magnitude of the nonzero values of .
Amestoy P R, Davis T A and Duff I S (1996) An approximate minimum degree ordering algorithm SIAM J. Matrix Anal. Appl. 17 886–905
Gilbert J R and Larimore S I (2004) A column approximate minimum degree ordering algorithm ACM Trans. Math. Software30,3 353–376
Gilbert J R, Larimore S I and Ng E G (2004) Algorithm 836: COLAMD, an approximate minimum degree ordering algorithm ACM Trans. Math. Software30, 3 377–380
1: – Character(1)Input
On entry: indicates the permutation to be applied.
The identity permutation is used (i.e., the columns are not permuted).
The permutation in the iprm array is used, as supplied by you.
The permutation computed by the COLAMD algorithm is used
, or .
2: – IntegerInput
On entry: , the order of the matrix .
3: – Integer arrayInput
On entry: the new column index array of sparse matrix . See Section 2.1.3 in the F11 Chapter Introduction.
4: – Integer arrayInput
On entry: contains the row index in for element . See Section 2.1.3 in the F11 Chapter Introduction.
5: – Integer arrayInput/Output
On entry: the first entries contain the column permutation if supplied by the user. This will be used if , and ignored otherwise. If used, it must consist of a permutation of all the integers in the range , the leftmost column of the matrix denoted by and the rightmost by . Labelling columns in this way, means that column of is in position in , where expresses the factorization to be performed.
On exit: The column permutation given or computed is returned in the second entries. The rest of the array contains data structures that will be used by other routines in the suite. The routine computes the column elimination tree for and a post-order permutation on the tree. It then compounds the iprm permutation given or computed by the COLAMD algorthm with the post-order permutation and this permutation is returned in the first entries. This whole array is needed by the factorization routine f11mef and associated routines f11mff,f11mhfandf11mmf and should be passed to them unchanged.
6: – IntegerInput/Output
On entry: ifail must be set to , or to set behaviour on detection of an error; these values have no effect when no error is detected.
A value of causes the printing of an error message and program execution will be halted; otherwise program execution continues. A value of means that an error message is printed while a value of means that it is not.
If halting is not appropriate, the value or is recommended. If message printing is undesirable, then the value is recommended. Otherwise, the value is recommended. When the value or is used it is essential to test the value of ifail on exit.
On exit: unless the routine detects an error or a warning has been flagged (see Section 6).
6Error Indicators and Warnings
If on entry or , explanatory error messages are output on the current error message unit (as defined by x04aaf).
An unexpected error has been triggered by this routine. Please
See Section 7 in the Introduction to the NAG Library FL Interface for further information.
Your licence key may have expired or may not have been installed correctly.
See Section 8 in the Introduction to the NAG Library FL Interface for further information.
Dynamic memory allocation failed.
See Section 9 in the Introduction to the NAG Library FL Interface for further information.
Not applicable. This computation does not use floating-point numbers.
8Parallelism and Performance
Background information to multithreading can be found in the Multithreading documentation.
f11mdf is threaded by NAG for parallel execution in multithreaded implementations of the NAG Library.
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.
We recommend calling this routine with before calling f11mef. The COLAMD algorithm computes a sparsity-preserving permutation solely from the pattern of such that the
factorization remains as sparse as possible, regardless of the subsequent choice of . The algorithm takes advantage of the existence of super-columns (columns with the same sparsity pattern) to reduce running time.
This example computes a sparsity preserving column permutation for the factorization of the matrix , where