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

ID 767251
Date 3/22/2024
Public

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

Document Table of Contents

RANK

Inquiry Intrinsic Function (Generic): Returns the rank of a data object.

result = RANK (a)

a

(Input) Is a data object. It can be of any type.

Results

The result type is default integer scalar. The result value is the rank of a.

Example

If object C is an assumed-rank dummy argument and its associated argument is an array of rank 5, RANK(C) returns the value 5.

If D is an array declared DIMENSION (2, 3, 4), RANK(D) returned the value 3.