User`s guide

Run Built-In Functions on a GPU
9-9
atan2d
atand
atanh
besselj
bessely
beta
betainc
betaincinv
betaln
bitand
bitcmp
bitget
bitor
bitset
bitshift
bitxor
blkdiag
bsxfun
cart2pol
cart2sph
cast
cat
cdf2rdf
ceil
chol
circshift
cumprod
cumsum
del2
det
diag
diff
disp
display
dot
double
eig
eps
eq
erf
erfc
erfcinv
erfcx
erfinv
exp
expm1
eye
factorial
false
fft
fft2
fftn
idivide
ifft
ifft2
ifftn
ifftshift
imag
ind2sub
Inf
inpolygon
int16
int2str
int32
int64
int8
interp1
interp2
interp3
interpn
inv
ipermute
isaUnderlying
iscolumn
isdiag
isempty
isequal
isequaln
log10
log1p
log2
logical
lt
lu
mat2str
max
median
mean
meshgrid
min
minus
mldivide
mod
mode
mpower
mrdivide
mtimes
NaN
ndgrid
ndims
ne
nextpow2
nnz
nonzeros
polyvalm
pow2
power
prod
psi
qr
rand
randi
randn
rank
rdivide
real
reallog
realpow
realsqrt
rem
repmat
reshape
rgb2hsv
roots
rot90
round
sec
secd
sech
shiftdim
times
toeplitz
trace
transpose
trapz
tril
triu
true
typecast
uint16
uint32
uint64
uint8
uminus
unwrap
uplus
vander
var
vertcat
xor
zeros
See the release notes for information about updates to individual functions.
To get information about any restrictions or limitations concerning the support of any of
these functions for gpuArray objects, type:
help gpuArray/functionname
For example, to see the help on the overload of lu, type
help gpuArray/lu
In most cases, if any of the input arguments to these functions is a gpuArray, any output
arrays are gpuArrays. If the output is always scalar, it returns as MATLAB data in the
workspace. If the result is a gpuArray of complex data and all the imaginary parts are
zero, these parts are retained and the data remains complex. This could have an impact
when using sort, isreal, etc.
Example: Functions with gpuArray Input and Output
This example uses the fft and real functions, along with the arithmetic operators +
and *. All the calculations are performed on the GPU, then gather retrieves the data
from the GPU back to the MATLAB workspace.