Chapter Contents
NAG Toolbox

NAG Toolbox: nag_int_name

Purpose

nag_int_name returns 'int32' or 'int64' depending on the implementation of the toolbox in use.

Syntax

[s] = nag_int_name

Description

nag_int_name returns 'int32' or 'int64' depending on the implementation of the toolbox in use. This is most useful for use with the MATLAB functions zeros or ones. The main use of this function is to allow code to be written that is portable between the 32 and 64 bit versions of the Toolbox.
See also Integers section in Calling NAG Routines from MATLAB.

References

None.

Parameters

Input Parameter

None.

Output Parameter

1:     s – string
This function will return 'int32' or 'int64' as appropriate for this implementation of the toolbox.

Error Indicators and Warnings

None.

Example

s = nag_int_name
a = zeros(2,2,nag_int_name)
s =
int32

a =

                    0                    0
                    0                    0

Chapter Contents
NAG Toolbox

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