The MAKE_ARRAY function returns an array of the specified type, dimensions, and initialization. This function enables you to dynamically create an array whose characteristics are not known until run time.
Set this keyword to initialize the array with each element set to the value of its one-dimensional subscript.
Set this keyword to prevent the initialization of the array. Normally, each element of the resulting array is set to zero.
A size vector specifying the type and dimensions of the result. The format of a size vector is given in the description of the SIZE function.
The type code to set the type of the result. See the description of the SIZE function for a list of IDL type codes.
The value to initialize each element of the resulting array. VALUE can be a scalar of any type including structure types. The result type is taken from VALUE unless one of the other keywords that specify a type is also set. In that case, VALUE is converted to the type specified by the other keyword prior to initializing the resulting array.
To create M, a 3-element by 4-element, integer array with each element set to the value 5, enter:
BYTARR , COMPLEXARR , DBLARR , DCOMPLEXARR , FLTARR , INTARR , , REPLICATE , STRARR