naginterfaces.library.quad.opt_get¶
- naginterfaces.library.quad.opt_get(optstr, comm)[source]¶
opt_get
is used to query the current value associated with an option formd_sgq_multi_vec()
anddim1_gen_vec_multi_rcomm()
.For full information please refer to the NAG Library document for d01zl
https://support.nag.com/numeric/nl/nagdoc_30.2/flhtml/d01/d01zlf.html
- Parameters
- optstrstr
A string identifying the option whose current value is required. See Other Parameters for md_sgq_multi_vec and Other Parameters for dim1_gen_vec_multi_rcomm for information on valid options. In addition, the following is a valid option:
Identify
In which case
opt_get
returns the character function name supplied toopt_set()
when the option arrays [‘iopts’] and [‘opts’] were initialized.- commdict, communication object
Communication structure.
This argument must have been initialized by a prior call to
opt_set()
.
- Returns
- optvaluedict
The option-value
dict
, with the following keys:'value'
float, int or strThe value of the requested option.
'annotation'
None or strPossible additional information about the option value.
- Raises
- NagValueError
- (errno )
The arrays [‘iopts’] and [‘opts’] have either not been initialized, have become corrupted, or are not compatible with this option setting function.
- Warns
- NagAlgorithmicWarning
- (errno )
On entry, the option in was not recognized: .
- (errno )
On entry, indicates a character option, but is too short to hold the stored value. The returned value will be truncated.
- Notes
opt_get
is used to query the current value associated with options. It is necessary to initialize option arrays, [‘iopts’] and [‘opts’], usingopt_set()
before any options are queried.Information on option names and whether these options are real, integer or character can be found in Other Parameters for md_sgq_multi_vec and Other Parameters for dim1_gen_vec_multi_rcomm.