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

List of intrinsic functions that accept an optional KIND argument?

OP1
New Contributor II
628 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 II
594 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
614 Views

There is no list I am aware of.

0 Kudos
OP1
New Contributor II
595 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
583 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 II
576 Views

In the list above I forgot: IEEE_INT and IEEE_REAL.

0 Kudos
Reply