hide long namesshow long names
hide short namesshow short names
Integer type:  int32  int64  nag_int  show int32  show int32  show int64  show int64  show nag_int  show nag_int

PDF version (NAG web site, 64-bit version, 64-bit version)
Chapter Contents
Chapter Introduction
NAG Toolbox

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

[result] = a00ac
[result] = nag_info_licence

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.

Input Parameters Omitted from the MATLAB Interface

None.

Output Parameters

1:     result – logical scalar
The result of the function.

Error Indicators and Warnings

None.

Accuracy

Not applicable.

Further Comments

None.

Example

function nag_info_licence_example
[result] = nag_info_licence;
if result
  disp('A valid licence key is available');
else
  disp('No valid licence key was found');
end
 
A valid licence key is available

function a00ac_example
[result] = a00ac;
if result
  disp('A valid licence key is available');
else
  disp('No valid licence key was found');
end
 
A valid licence key is available


PDF version (NAG web site, 64-bit version, 64-bit version)
Chapter Contents
Chapter Introduction
NAG Toolbox

© The Numerical Algorithms Group Ltd, Oxford, UK. 2009–2013