naginterfaces.library.quad.opt_set¶
- naginterfaces.library.quad.opt_set(optstr, comm)[source]¶
opt_set
either initializes or resets the option arrays or sets a single option for supported problem solving functions in submodulequad
.For full information please refer to the NAG Library document for d01zk
https://support.nag.com/numeric/nl/nagdoc_30.2/flhtml/d01/d01zkf.html
- Parameters
- optstrstr
A string identifying the option to be set.
Initialize =
Initialize the option arrays [‘iopts’] and [‘opts’] for use with function , where is the name associated with the function of interest.
Defaults
Resets all options to their default values.
See Other Parameters for md_sgq_multi_vec and Other Parameters for dim1_gen_vec_multi_rcomm for details of valid values for and . The equals sign () delimiter must be used to separate the from its value.
is case insensitive.
Each token in the and component must be separated by at least one space.
- commdict, communication object, modified in place
Communication structure.
On initial entry: need not be set.
- Raises
- NagValueError
- (errno )
On entry, attempting to initialize the option arrays but specified function name was not valid: .
- (errno )
On entry, either the option arrays have not been initialized or they have been corrupted.
- Warns
- NagAlgorithmicWarning
- (errno )
On entry, the option in was not recognized: .
- (errno )
On entry, the expected delimiter ‘’ was not found in : .
- (errno )
On entry, could not convert the specified to an integer: .
- (errno )
On entry, could not convert the specified to a real: .
- (errno )
On entry, the supplied for the integer option is not valid.
.
- (errno )
On entry, the supplied for the real option is not valid.
.
- (errno )
On entry, the supplied for the character option is not valid.
.
- Notes
opt_set
has three purposes: to initialize option arrays; to reset all options to their default values; or to set a single option to a user-supplied value.Options and their values are, in general, presented as a character string, , of the form ‘’; alphabetic characters can be supplied in either upper or lower case. Both and may consist of one or more tokens separated by white space. The tokens that comprise will normally be either an integer, real or character value as defined in the description of the specific optional argument. In addition all options can take an DEFAULT which resets the option to its default value.
It is imperative that option arrays are initialized before any options are set, before the relevant problem solving function is called and before any options are queried using
opt_get()
.The available option names and their corresponding valid values are given in Other Parameters for md_sgq_multi_vec and Other Parameters for dim1_gen_vec_multi_rcomm.