GPULib API

Tech-X Corporation

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

lib/

gpusubarr.pro


top gpuSubArr

gpuSubArr, p1, p2 [, p3], p4, p5 [, p6]

Extract a subset of an array and store it in a subset of the result array.

Parameters

p1 in required type=GPUVariable object

src_gpu: GPU array to extract subarray from.

p2 in required type=int or intarr

src_x: index[array] of src_gpu x dimension. When src_x is an int, this is the x-index to be extracted. When src_x is a 2-element int-arr, this is array is of the form [lower, upper] and lower and upper index of the x-subrange. src_x, lower or upper can be -1, specifying a the full range (equivalent to IDL's '*'.

p3 in optional type=int or intarr

src_y: index[array] of src_gpu y dimension. For more details see src_x; required if x_gpu is 2D

p4 in required type=GPUVariable object

dest_gpu: GPU array to store subarray into

p5 in required type=int or intarr

dest_x: index[array] of dest_gpu x dimension. For more details see src_x.

p6 in optional type=int or intarr

dest_y: index[array] of dest_gpu y dimension. For more details see src_x; required if dest is 2D

File attributes

Modification date: Fri Nov 12 11:07:44 2010
Lines: 274
Docformat: rst rst