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

List of intrinsic functions that accept an optional KIND argument?

OP1
新分销商 III
1,534 次查看

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 项奖励
1 解答
OP1
新分销商 III
1,500 次查看

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

在原帖中查看解决方案

4 回复数
Steve_Lionel
名誉分销商 III
1,520 次查看

There is no list I am aware of.

0 项奖励
OP1
新分销商 III
1,501 次查看

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
名誉分销商 III
1,489 次查看

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 项奖励
OP1
新分销商 III
1,482 次查看

In the list above I forgot: IEEE_INT and IEEE_REAL.

0 项奖励
回复