PDF version (NAG web site
, 64-bit version, 64-bit version)
NAG Toolbox: nag_info_licence (a00ac)
Purpose
nag_info_licence (a00ac) provides a convenient means of checking the availability of a valid licence key on licence-managed implementations before starting computations that will use NAG Toolbox functions. In particular, the use of this function is highly recommended in programs that call NAG Toolbox functions within multithreaded sections (e.g., OpenMP parallel regions). The function need only be called once, before the start of the first multithreaded section.
Syntax
Description
nag_info_licence (a00ac) returns the logical value true if a valid licence is found, otherwise false is returned.
On non licence-managed implementations, true is always returned.
References
None.
Parameters
Compulsory Input Parameters
None.
Optional Input Parameters
None.
Output Parameters
- 1:
– logical scalar
The result of the function.
Error Indicators and Warnings
None.
Accuracy
Not applicable.
Further Comments
None.
Example
This example prints an appropriate message depending upon the value returned by nag_info_licence (a00ac).
Open in the MATLAB editor:
a00ac_example
function a00ac_example
fprintf('a00ac example results\n\n');
[result] = a00ac;
if result
disp('A valid licence key is available');
else
disp('No valid licence key was found');
end
a00ac example results
A valid licence key is available
PDF version (NAG web site
, 64-bit version, 64-bit version)
© The Numerical Algorithms Group Ltd, Oxford, UK. 2009–2015