Note:this routine usesoptional parametersto define choices in the problem specification. If you wish to use default settings for all of the optional parameters, then this routine need not be called. If, however, you wish to reset some or all of the settings please refer to Section 11 for a detailed description of the specification of the optional parameters.
f12jbf is part of NAG FEAST suite of routines and may be used to supply individual optional parameters to either the contour setting routines or the reverse communication solvers.
The routine may be called by the names f12jbf or nagf_sparseig_feast_option.
3Description
After the handle has been initialized (e.g., f12jaf has been called), f12jbf may be used to supply values for optional parameters to f12jef,f12jff,f12jgf,f12jjf,f12jkf,f12jrf,f12jsf,f12jtf,f12jufandf12jvf. It is only necessary to call f12jbf for those arguments whose values are to be different from their default values. One call to f12jbf sets one argument value.
Each optional parameter is defined by a single character string consisting of one or more items. The items associated with a given option must be separated by spaces or equals signs . Alphabetic characters may be upper or lower case. The string
'Integration type = Gauss'
is an example of a string used to set an optional parameter. For each option the string contains one or more of the following items:
–a mandatory keyword;
–a phrase that qualifies the keyword;
–a number that specifies an integer.
The NAG FEAST suite of routines of which f12jbf is a part is based on the FEAST library, which solves eigenproblems using contour integration to find eigenvalues with a given contour in the complex plane. However, f12jbf itself does not have an equivalent routine in the FEAST package, which passes options by directly setting values to scalar arguments or to specific elements of array arguments. f12jbf is intended to make the passing of options more transparent and follows the same principle as the single option setting routines in Chapter E04.
The initialization routine f12jaf must be called prior to the first call to f12jbf and all calls to f12jbf must precede the first call to the contour setting routines f12jef,f12jffandf12jgf, and the reverse communication solvers f12jjf,f12jkf,f12jrf,f12jsf,f12jtf,f12jufandf12jvf, and the deallocation routine f12jzf.
A complete list of optional parameters, their abbreviations, synonyms and default values is given in Section 11.
4References
None.
5Arguments
1: – Type (c_ptr)Input
On entry: the handle to the internal data structure used by the NAG FEAST suite. It needs to be initialized by f12jaf. It must not be changed between calls to the NAG FEAST suite.
2: – Character(*)Input
On entry: a single valid option string (as described in Section 3 and Section 11).
3: – 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).
Errors or warnings detected by the routine:
Ambiguous keyword:
Keyword not recognized:
Second keyword not recognized:
The supplied handle does not define a valid handle to the data structure used by the NAG FEAST suite. It has not been properly initialized or it has been corrupted.
One of the contour setting routines f12jef,f12jfforf12jgf has already been called. All calls to f12jbf must be made prior to calling the contour setting routines.
An unexpected error has been triggered by this routine. Please
contact NAG.
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.
7Accuracy
Not applicable.
8Parallelism and Performance
f12jbf is not threaded in any implementation.
9Further Comments
9.1Additional Licensor
Parts of the code for f12jbf are distributed under the BSD software License. Please refer to Library Licensors for further details.
Several optional parameters for the contour definition routines f12jef,f12jffandf12jgf, and the reverse communication solvers f12jjf,f12jkf,f12jrf,f12jsf,f12jtf,f12jufandf12jvf, define choices in the problem specification or the algorithm logic. In order to reduce the number of formal arguments for these routines, these optional parameters have associated default values that are appropriate for most problems. Therefore, you need only specify those optional parameters whose values are to be different from their default values.
The remainder of this section can be skipped if you wish to use the default values for all optional parameters.
The following is a list of the optional parameters available. A full description of each optional parameter is provided in Section 11.1.
Optional parameters may be specified by calling f12jbf before a call to f12jef,f12jffandf12jgf, but after a call to f12jaf. One call is necessary for each optional parameter.
All optional parameters you do not specify are set to their default values. Optional parameters you do specify are unaltered by the contour definition routines and the reverse communication solvers (unless they define invalid values) and remain in effect for subsequent calls unless you alter them.
11.1Description of the Optional Parameters
For each option, we give a summary line, a description of the optional parameter and details of constraints.
The summary line contains:
the keywords, where the minimum abbreviation of each keyword is underlined (if no characters of an optional qualifier are underlined, the qualifier may be omitted);
a parameter value,
where the letters , and denote options that take character, integer and real values respectively;
the default value.
Keywords and character values are case and white space insensitive.
Advisory
Default
The destination for advisory messages.
Contour Points Hermitian
Default
For real symmetric (f12jjf) or Hermitian (f12jrf) eigenproblems, this is the number of points used on the half-contour which defines the contour integral. If the option Integration Type is set to or , the values permitted are –, , , , , . If the option Integration Type is set to , then all values greater than or equal to are permitted.
Contour Points Non-Hermitian
Default
For general real (f12jkf), symmetric complex (f12jsf, f12juf) or general complex (f12jtf, f12jvf) eigenproblems, this is the number of integration points used on the circular or elliptical contour within which eigenvalues are sought. If the option Integration Type is set to , the values permitted are – (even values only), , , , , . If the option Integration Type is set to , then all values greater than or equal to are permitted. Note this option is only relevant if the contour definition routines f12jeforf12jff are used. If a custom contour is required (using the contour setting routine f12jgf) then this option is not relevant.
Convergence Criteria
Default
These are the convergence criteria used to test for convergence of eigenpairs in the search region.
The relative error of the trace of the eigenproblem in the search subspace is tested against .
The relative maximum residual over all eigenpairs found is tested against .
Note: the value of is controlled using the optional parameter Tolerance.
Defaults
This special keyword may be used to reset all optional parameters to their default values.
Ellipse Contour Ratio
Default
The ratio, as a percentage, of the length of the vertical axis to the length of the horizontal axis if an elliptical contour is to be used in the contour integral. This option should be set prior to a call to either of the contour definition routines f12jeforf12jff.
Note: for a Hermitian eigenvalue problem, if the optional parameter Integration Type is set to then a circular contour is used and this option is not referenced.
Ellipse Rotation Angle
Default
The rotation angle in degrees from the horizontal (between and ) of the major axis if an elliptical contour is to be used in the contour integral. This option should be set prior to calls to the contour definition routine f12jff and the reverse communication solvers f12jkf,f12jsf,f12jtf,f12jufandf12jvf (which deal with problems that are neither real symmetric nor complex Hermitian).
Execution Mode
Default
The execution mode used by the reverse communication solvers.
Normal execution.
Return the search subspace and an estimate of the eigenvalues after one contour integral.
Return an estimate of the number of eigenvalues inside the search contour. Note that this option is not available for polynomial eigenvalue problems (f12jufandf12jvf).
Integration Type
Default
The integration type. The allowed values are , (Trapezoidal) or (Zolotarev). Note that Zolotarev can only be used for real symmetric or complex Hermitian eigenproblems. This option should be set prior to a call to either of the contour definition routines f12jeforf12jff. If a custom contour is required (using the contour setting routine f12jgf) then this option is not relevant.
Max Iter
Default
The maximum number of iterations used in the reverse communication solvers. If this is set to a negative value then no maximum will be used.
Nolist
Default
List
Optional parameter List enables printing of each optional parameter specification as it is supplied. Nolist suppresses this printing.
Print Level
Default
This controls the amount of printing produced by the contour definition routines and the reverse communication solvers.
The stopping criterion, , used to determine convergence of the eigensolver. If a value of is supplied then is used.
Eigenvectors
Default
Determines whether both left and right eigenvectors are computed or whether just right eigenvectors are computed.
Note: this option only applies to the solvers f12jkf,f12jtfandf12jvf, which deal with non-symmetric eigenvalue problems. For the symmetric/Hermitian solvers (f12jjf,f12jrf,f12jsfandf12juf) the left eigenvectors can be obtained from the right eigenvectors by complex conjugation.
Both left and right eigenvectors are computed.
Only right eigenvectors are computed.
Subspace
Default
This option determines whether or not you will supply an initial guess for the eigenvector search subspace.
The reverse communication solvers will use your initial guess for the search subspace and the eigenvalues therein. This option is useful if a previous run of the FEAST routines has yielded a partially converged answer to your eigenproblem.
Random initial vectors will be used for the search subspace.