Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29108 Discussions

List of intrinsic functions that accept an optional KIND argument?

OP1
New Contributor III
1,211 Views

Is there (in the Intel documentation, or somewhere else) a list of all intrinsic functions that accept an optional KIND argument? Functions like SIZE, CMPLX, etc. ?

I have been looking around for a while but couldn't find it.

0 Kudos
1 Solution
OP1
New Contributor III
1,177 Views

Thanks @Steve_Lionel . I have compiled manually the list below, but it's very possible I missed other functions:

ACHAR, AINT, ANINT, CEILING, CHAR, CMPLX, COSHAPE, COUNT, FAILED_IMAGES, FINDLOC, FLOOR, IACHAR, ICHAR,
INDEX, INT, LBOUND, LCOBOUND, LEN, LEN_TRIM, LOGICAL, MASKL, MASKR, MAXLOC, MINLOC, NINT, REAL, SCAN,
SHAPE, SIZE, STOPPED_IMAGES, STORAGE_SIZE, UBOUND, UCOBOUND, VERIFY

View solution in original post

4 Replies
Steve_Lionel
Honored Contributor III
1,197 Views

There is no list I am aware of.

0 Kudos
OP1
New Contributor III
1,178 Views

Thanks @Steve_Lionel . I have compiled manually the list below, but it's very possible I missed other functions:

ACHAR, AINT, ANINT, CEILING, CHAR, CMPLX, COSHAPE, COUNT, FAILED_IMAGES, FINDLOC, FLOOR, IACHAR, ICHAR,
INDEX, INT, LBOUND, LCOBOUND, LEN, LEN_TRIM, LOGICAL, MASKL, MASKR, MAXLOC, MINLOC, NINT, REAL, SCAN,
SHAPE, SIZE, STOPPED_IMAGES, STORAGE_SIZE, UBOUND, UCOBOUND, VERIFY

Steve_Lionel
Honored Contributor III
1,166 Views

In essence, any intrinsic that would otherwise return something of "default kind" had a KIND= argument added. Conversion intrinsics such as INT and REAL had it already, of course. 

0 Kudos
OP1
New Contributor III
1,159 Views

In the list above I forgot: IEEE_INT and IEEE_REAL.

0 Kudos
Reply