lib/
gpumake_array.pro
Routines
result = gpuMake_array_typesize(type)
result = gpuMake_Array(nx [, ny] [, /COMPLEX] [, /DCOMPLEX] [, /FLOAT] [, /DOUBLE] [, TYPE=long] [, /NOZERO] [, VALUE=float] [, /INDEX] [, ERROR=integer] [, /CPU])
This routine creates an IDL structure representing an array on the GPU that other GPULib library routines can use.
Routine details
top gpuMake_Array
result = gpuMake_Array(nx [, ny] [, /COMPLEX] [, /DCOMPLEX] [, /FLOAT] [, /DOUBLE] [, TYPE=long] [, /NOZERO] [, VALUE=float] [, /INDEX] [, ERROR=integer] [, /CPU])
This routine creates an IDL structure representing an array on the GPU that other GPULib library routines can use.
Return value
GPUVariable object
Parameters
- nx in required type=integer
size of first dimenion
- ny in optional type=integer
size of second dimenion, if present
Keywords
- COMPLEX in optional type=boolean
set to create an array of type complex
- DCOMPLEX in optional type=boolean
set to create an array of type double complex
- FLOAT in optional type=boolean
set to create an array of type float
- DOUBLE in optional type=boolean
set to create an array of type double
- TYPE in optional type=long default=4
set a type indicator as given by SIZE i.e. 4 for float, 5 for double, 6 for complex, and 9 for double complex
- NOZERO in optional type=boolean
Normally, gpuFltarr sets every element of the allocated array to zero. If set, this keyword prevents zeroing the elements, running slightly faster.
- VALUE in optional type=float
initialization value for array
- INDEX in optional type=boolean
initialize array elements to their indices
- ERROR out optional type=integer
error status
- CPU in optional type=boolean
set to create a CPU variable allocated in pinned (page-locked) memory
File attributes
Modification date: | Fri Nov 12 11:07:45 2010 |
Lines: | 131 |
Docformat: | rst rst |