lib/
gpuabs.pro
Routines
result = gpuAbs(p1, p2 [, p3] [, p4] [, p5] [, LHS=GPUVariable object] [, /NONBLOCKING] [, ERROR=integer])
Return the absolute value of a vector
gpuAbs, p1, p2 [, p3] [, p4] [, p5] [, p6] [, /NONBLOCKING] [, ERROR=integer]
Return the absolute value of a vector
Routine details
top gpuAbs
result = gpuAbs(p1, p2 [, p3] [, p4] [, p5] [, LHS=GPUVariable object] [, /NONBLOCKING] [, ERROR=integer])
Return the absolute value of a vector
There are two forms for the arguments to this routine:
Result = abs(p1)
where p1 is GPUVariable object or a numeric array and p2 is
GPUVariable object. Or:
Result = p1 * abs(p2 * p3 + p4) + p5
where p2 is GPUVariable object or a numerica array and p6 is
GPUVariable object and p1, p2, p4, and p5 are scalar values.
Return value
GPUVariable object structure
Parameters
- p1 in required type=numtype or GPUVariable object
- p2 in out required type=numtype or GPUVariable object
- p3 in optional type=GPUVariable object
- p4 in optional type=numtype
- 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 gpuAbs
gpuAbs, p1, p2 [, p3] [, p4] [, p5] [, p6] [, /NONBLOCKING] [, ERROR=integer]
Return the absolute value of a vector
There are two forms for the arguments to this routine:
p2 = abs(p1)
where p1 is GPUVariable object or a numeric array and p2 is GPUVariable object. Or:
p6 = p1 * abs(p2 * p3 + p4) + p5
where p2 is GPUVariable object or a numerica array and p6 is GPUVariable object and
p1, p2, p4, and p5 are scalar values.
Parameters
- p1 in required type=numtype or GPUVariable object
- p2 in out required type=numtype or GPUVariable object
- p3 in optional type=GPUVariable object
- p4 in optional type=numtype
- 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:45 2010 |
Lines: | 237 |
Docformat: | rst rst |