The LONARR function returns a longword integer vector or array.

Examples


To create L, a 100-element, longword vector with each element set to 0, enter:

L = LONARR(100)

Syntax


Result = LONARR( D1 [, ..., D8] [, /NOZERO] )

Return Value


Returns a long array of the specified dimensions.

Arguments


Di

Either an array or a series of scalar expressions specifying the dimensions of the result. If a single argument is specified, it can be either a scalar expression or an array of up to eight elements. If multiple arguments are specified, they must all be scalar expressions. Up to eight dimensions can be specified. If the dimension arguments are not integer values, IDL will convert them to integer values before creating the new array.

Keywords


NOZERO

Normally, LONARR sets every element of the result to zero. If NOZERO is set, this zeroing is not performed and LONARR executes faster.

Version History


Original

Introduced

See Also


BOOLARR, BYTARR, COMPLEXARR, DBLARR, DCOMPLEXARR, FLTARR, INTARR, LON64ARR, MAKE_ARRAY, STRARR, UINTARR, ULON64ARR, ULONARR