GPULib API

Tech-X Corporation

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

lib/

gpusub.pro


Routines

result = gpuSub(p1, p2, p3 [, p4] [, p5] [, LHS=GPUVariable object] [, /NONBLOCKING] [, ERROR=integer])

Subtract two vectors

gpuSub, p1, p2, p3 [, p4] [, p5] [, p6] [, /NONBLOCKING] [, ERROR=integer]

Subtract two vectors

Routine details

top gpuSub

result = gpuSub(p1, p2, p3 [, p4] [, p5] [, LHS=GPUVariable object] [, /NONBLOCKING] [, ERROR=integer])

Subtract two vectors

There are two forms for the arguments to this routine: result = p1 - p2 where p1, p2 are GPUVariable object or a numeric array and p3 is GPUVariable object.

Or: result = p1 * p2 - p3 * p4 + p5 where p2, p4 are GPUVariable object or a numeric array, and p1, p3, and p5 are scalar values.

Return value

GPUVariable objecrt

Parameters

p1 in required type=numtype or GPUVariable object
p2 in required type=GPUVariable object
p3 in out required type=numtype or GPUVariable object
p4 in optional type=GPUVariable object
p5 in optional type=numtype

Keywords

LHS in optional type=GPUVariable object

pass GPU variable to use as return value

NONBLOCKING in optional type=boolean

unless this keyword is set, this will block until the device has completed all preceding requested tasks

ERROR out optional type=integer

error status

top gpuSub

gpuSub, p1, p2, p3 [, p4] [, p5] [, p6] [, /NONBLOCKING] [, ERROR=integer]

Subtract two vectors

There are two forms for the arguments to this routine: p3 = p1 - p2 where p1, p2 are GPUVariable objects or a numeric array and p3 is a GPUVariable object.

Or: p6 = p1 * p2 - p3 * p4 + p5 where p2, p4 are GPUVariable objects or a numeric array, p6 is GPUVariable object= and p1, p3, and p5 are scalar values.

Parameters

p1 in required type=numtype or GPUVariable object
p2 in required type=GPUVariable object
p3 in out required type=numtype or GPUVariable object
p4 in optional type=GPUVariable object
p5 in optional type=numtype
p6 out optional type=GPUVariable object

Keywords

NONBLOCKING in optional type=boolean

unless this keyword is set, this will block until the device has completed all preceding requested tasks

ERROR out optional type=integer

error status

File attributes

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