GPULib API

Tech-X Corporation

single page | use frames     summary     class     fields     routine details     file attributes

lib/

gpusort.pro


Routines

result = gpuSort(values_gpu [, LHS=GPUVariable oject] [, /INPLACE] [, ERROR=integer])

Sorts an array.

gpuSort, values_gpu [, keys_gpu] [, /INPLACE] [, ERROR=integer]

Sorts an array.

Routine details

top gpuSort

result = gpuSort(values_gpu [, LHS=GPUVariable oject] [, /INPLACE] [, ERROR=integer])

Sorts an array. Normally, an array of indices is returned in the same way that IDL's SORT routine does: keys_gpu = gpuSort(values_gpu) If the INPLACE keyword is set, the values_gpu array is sorted and returned.

Return value

GPUVariable object, either sorted array or indices to sort array

Parameters

values_gpu in required type=GPUVariable oject

array to be sorted

Keywords

LHS in optional type=GPUVariable oject

pass GPU variable to use as return value

INPLACE in optional type=boolean

set to sort array inplace instead of computing indices to produce sorted array

ERROR out optional type=integer

error status

top gpuSort

gpuSort, values_gpu [, keys_gpu] [, /INPLACE] [, ERROR=integer]

Sorts an array. If two arguments are passed, the first is the array to be sorted and the second is the array of indices (as returned by IDL's SORT routine): gpuSort, values_gpu, keys_gpu If only one argument is given or the INPLACE keyword is set, the values_gpu array is sorted inplace: gpuSort, values_gpu gpuSort, values_gpu, /INPLACE

Parameters

values_gpu in required type=GPUVariable oject

array to be sorted

keys_gpu in optional type=GPUVariable oject

x-values for either form of interpolation

Keywords

INPLACE in optional type=boolean

set to sort array inplace instead of computing indices to produce sorted array

ERROR out optional type=integer

error status

File attributes

Modification date: Fri Nov 12 11:07:46 2010
Lines: 146
Docformat: rst rst