GPULib API

Tech-X Corporation

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

lib/

gputotal.pro


top gpuTotal

result = gpuTotal(x_gpu [, dir] [, /CUMULATIVE] [, LHS=GPUVariable object] [, ERROR=integer])

Calculates the total of the elements of the GPU vector.

Return value

floattype if dir is not greated than 0 or GPUVariable object if it is

Parameters

x_gpu in required type=GPUVariable object

GPU array to total

dir in optional type=integer

dimensional along which to perform the sum, the first dimension is dimension 1

Keywords

CUMULATIVE in optional type=boolean

compute the cumulative sum

LHS in optional type=GPUVariable object

pass GPU variable to use as return value

ERROR out optional type=integer

error status

File attributes

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