SHAPE(3I) Last changed: 1-6-98
SHAPE - Returns the shape of an array or a scalar
SHAPE ([SOURCE=]source)
UNICOS, UNICOS/mk, and IRIX systems
Fortran 90
The SHAPE intrinsic function returns the shape of an array or a
scalar. It accepts the following argument:
source May be of any type. It can be array valued or scalar. It
must not be a pointer that is disassociated or an
allocatable array that is not allocated. It must not be an
assumed-size array.
SHAPE is an inquiry function. The name of this intrinsic cannot be
passed as an argument.
The result is a default integer array of rank 1 whose size is equal to
the rank of source. The value of the result is the shape of source.
The value of SHAPE(A(2:5, -1:1)) is [4, 3]. The value of SHAPE(3) is
the rank -1 array of size 0.
Intrinsic Procedures Reference Manual, publication SR-2138, for the
printed version of this man page.
SHAPE(3I) Last changed: 1-6-98
SHAPE - Returns the shape of an array or a scalar
SHAPE ([SOURCE=]source)
UNICOS, UNICOS/mk, and IRIX systems
Fortran 90
The SHAPE intrinsic function returns the shape of an array or a
scalar. It accepts the following argument:
source May be of any type. It can be array valued or scalar. It
must not be a pointer that is disassociated or an
allocatable array that is not allocated. It must not be an
assumed-size array.
SHAPE is an inquiry function. The name of this intrinsic cannot be
passed as an argument.
The result is a default integer array of rank 1 whose size is equal to
the rank of source. The value of the result is the shape of source.
The value of SHAPE(A(2:5, -1:1)) is [4, 3]. The value of SHAPE(3) is
the rank -1 array of size 0.
Intrinsic Procedures Reference Manual, publication SR-2138, for the
printed version of this man page.
[ Back ]
|