Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 6/24/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Inquiry Intrinsic Functions

The following table lists inquiry intrinsic functions. Unless noted, inquiry intrinsic functions can be used in specification expressions.

Name

Description

ALLOCATED

Determines whether an allocatable variable is allocated.

ASSOCIATED

Determines if a pointer is associated or if two pointers are associated with the same target.

BIT_SIZE

Returns the number of bits in an integer type.

CACHESIZE

Returns the size of a level of the memory cache.

COSHAPE

Returns the sizes of codimensions of a coarray.

COMMAND_ARGUMENT_COUNT1

Returns the number of command-line arguments.

DIGITS

Returns number of significant digits for data of the same type as the argument.

EOF

Determines whether a file is at or beyond the end-of-file record.

EPSILON

Returns the smallest positive number that when added to one produces a number greater than one for data of the same type as the argument.

EXTENDS_TYPE_OF

Determines if a derived type extends another derived type.

GET_TEAM1

Returns a variable of type TEAM_TYPE that describes a team of images that for the team inquired about. TEAM_TYPE is defined in the intrinsic module ISO_FORTRAN_ENV.

HUGE

Returns the largest number that can be represented by numbers of the type of the argument.

IARGC

Returns the index of the last command-line argument.

INT_PTR_KIND

Returns the INTEGER KIND that will hold an address.

IS_CONTIGUOUS

Returns whether an array is contiguous.

KIND

Returns the value of the kind parameter of the argument.

LBOUND

Returns the lower bounds for all dimensions of an array, or the lower bound for a specified dimension.

LCOBOUND

Returns the lower cobounds for all codimensions of a coarray, or the lower cobound for a specified codimension.

LEN

Returns the length of a character expression.

LOC1

Returns the address of the argument.

MAXEXPONENT

Returns the largest positive decimal exponent for data of the same type as the argument.

MINEXPONENT

Returns the largest negative decimal exponent for data of the same type as the argument.

NARGS

Returns the total number of command-line arguments, including the command.

NEW_LINE

Returns a newline character.

PRECISION

Returns the number of significant digits for data of the same type as the argument.

PRESENT

Determines whether an optional argument is present.

RADIX

Returns the base for data of the same type as the argument.

RANGE

Returns the decimal exponent range for data of the same type as the argument.

RANK

Returns the rank of a data object.

SAME_TYPE_AS

Determines if two polymorphic objects have the same dynamic type.

SELECTED_INT_KIND

Returns the value of the kind parameter of integers in range r.

SELECTED_REAL_KIND

Returns the value of the kind parameter of reals with (optional) first argument digits and (optional) second argument exponent range. At least one optional argument is required.

SHAPE

Returns the shape of an array or scalar argument.

SIZE

Returns the size of an array or the size of one extent of the array.

SIZEOF

Returns the number of bytes of storage used by the argument.

STORAGE_SIZE

Returns the number of bits occupied by an object.

TINY

Returns the smallest positive number that can be represented by numbers of type the argument.

UBOUND

Returns the upper bounds for all dimensions of an array, or the upper bound for a specified dimension.

UCOBOUND

Returns the upper cobounds for all codimensions of a coarray, or the upper cobound for a specified codimension.

1 This function cannot be used in a specification expression because it is not a Fortran standard inquiry function.