Reference Guide > I–L Routines > LONARR Function
  

LONARR Function
Returns a longword integer vector or array.
enabled.
Usage
result = LONARR(dim1, ... , dimn)
Input Parameters
dimi—The dimensions of the result. May be any scalar expression. Up to eight dimensions may be specified.
Returned Value
result—A longword integer vector or array.
Keywords
Nozero—If Nozero is nonzero, the normal zeroing is not performed. This causes LONARR to execute faster.
Discussion
Normally, LONARR sets every element of the result to zero.
Example
This example creates a 4-by-2 longword integer array. Note that all elements of the array are initialized to 0L.
; Create a longword integer array.
a = LONARR(4, 2)
INFO, a
; PV-WAVE prints: VARIABLE LONG = Array(4, 2)
PRINT, a     
; PV-WAVE prints: 
;   0   0   0   0
;   0   0   0   0
See Also
BYTARR,   FLTARR, I32ARR,   INTARR, INT32,  LINDGEN

Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.