NAME

rank - returns the rank (number of dimensions) of a value

SYNOPSIS

val.rank()

DESCRIPTION

The rank() method returns the number of dimensions of a scalar or array value. The rank() is always a scalar.

RETURN VALUE

An Int containing the number of dimensions of a given value

ERRORS

ArgCheck if any arguments are passed

EXAMPLE

    a = 3
    a.rank()
0

    a = [3,4,5].iterate()
    a.rank()
3

SEE ALSO

shape
length
width
stride
sizeof