FINDGEN Function
Returns a single-precision floating-point array with specified dimensions.
enabled.
Usage
result = FINDGEN(dim1, ..., dimn)
Input Parameters
dimiThe dimensions of the result. May be any scalar expression. Up to eight dimensions may be specified.
Returned Value
result—An initialized single-precision, floating-point array. If the resulting array is treated as a one-dimensional array, then its initialization is given by the following:
Keywords
None.
Discussion
Each array element is set to the value of its one-dimensional subscript.
Example
This example creates a 4-by-2 single-precision, floating-point array.
; Create a single-precision, floating-point array.
a = FINDGEN(4, 2)
INFO, a
; PV-WAVE prints: A       FLOAT       = Array(4, 2)
PRINT, a
; PV-WAVE prints: 
; 0.00000   1.00000   2.00000   3.00000
; 4.00000   5.00000   6.00000   7.00000
See Also