Simple Array Operations

The ARR routines provide simple operations on primitive numeric arrays. The package is low-level one - it does not handle file access for arrays, does not do much checking, or error reporting.

All ARR routines have a trailing STATUS argument which is checked on entry. If the value is non-zero then the routine will do nothing. All array arguments in ARR are declared as (*), in order that code such as that below does not fail

      CALL BDI_MAPDATA( ID, 'READ', DPTR, STATUS )
      CALL ARR_RANG1R( N, %VAL(DPTR), DMIN, DMAX, STATUS )
in the case where the map call fails, returning a zero pointer and bad status.

The routines are suffixed with the Starlink standard type codes, ie. [B]yte, [W]ord, [I]integer, [R]eal and [D]ouble.

David J. Allan (dja@star.sr.bham.ac.uk)