home *** CD-ROM | disk | FTP | other *** search
- SHAPE(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- SSHHAAPPEE - Returns the shape of an array or a scalar
-
- SSYYNNOOPPSSIISS
- SSHHAAPPEE (([SSOOUURRCCEE==]_s_o_u_r_c_e))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90
-
- SSTTAANNDDAARRDDSS
- Fortran
-
- DDEESSCCRRIIPPTTIIOONN
- The SSHHAAPPEE intrinsic function returns the shape of an array or a
- scalar. It accepts the following argument:
-
- _s_o_u_r_c_e 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.
-
- SSHHAAPPEE is an inquiry function. The name of this intrinsic cannot be
- passed as an argument.
-
- RREETTUURRNN VVAALLUUEESS
- The result is a default integer array of rank 1 whose size is equal to
- the rank of _s_o_u_r_c_e. The value of the result is the shape of _s_o_u_r_c_e.
-
- EEXXAAMMPPLLEESS
- The value of SSHHAAPPEE((AA((22::55,, --11::11)))) is ((//44,, 33//)). The value of SSHHAAPPEE((33))
- is the rank -1 array of size 0.
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-