Silverfrost Logo About Us | Contact Us
 

SIZE

Platform

x64, Win32, .NET

Purpose

To get the extent of an array along a specified dimension or the total number of elements in the array.

Class

Inquiry function.

Syntax

INTEGER FUNCTION SIZE(ARRAY [, DIM])
INTEGER DIM

Description

ARRAY is an array of any type. If it is allocatable it must be allocated. If it is a pointer it must be associated. If it is an assumed size array then DIM must be present and have a value which is less than the rank of ARRAY.

If DIM is present it is a scalar in the range 1 < DIM < n where n is the rank of ARRAY.

Return value

The result has a value equal to the extent of dimension DIM of ARRAY or, if DIM is absent, the total number of elements of ARRAY.

 

 

Copyright © 1999-2017 Silverfrost Limited