Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
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) returns the value 3.