Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
29322 Discussions

List of intrinsic functions that accept an optional KIND argument?

OP1
New Contributor III
1,468 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,434 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,454 Views

There is no list I am aware of.

0 Kudos
OP1
New Contributor III
1,435 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,423 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,416 Views

In the list above I forgot: IEEE_INT and IEEE_REAL.

0 Kudos
Reply