User`s guide

R2013b
4-8
Enhancements to MATLAB functions enabled for GPUs, including ones,
zeros
The following functions are enhanced in their support for gpuArray data:
zeros
ones
nan
inf
eye
true
false
cast
Note the following enhancements for these functions:
Z = zeros(___,'like',P) returns a gpuArray of zeros of the same complexity
as gpuArray P, and same underlying class as P if class is not specified. The same
behavior applies to the other constructor functions listed in this table.
cast also supports the 'like' option for gpuArray input, applying the underlying
class of one array to another.
For more information on any of these functions, type help gpuArray.functionname.
For example:
help gpuArray.cast
For complete lists of MATLAB functions that support gpuArray, see Run Built-In
Functions on a GPU.
gputimeit Function to Time GPU Computations
gputimeit is a new function to measure the time to run a function on a GPU. It is
similar to the MATLAB function timeit, but ensures accurate time measurement on the
GPU. For more information and examples, see the gputimeit reference page.
New GPU Random Number Generator NormalTransform Option: Box-
Muller
When generating random numbers on a GPU, there is a new option for
'NormalTransform' called 'BoxMuller'. The Box-Muller transform allows faster
generation of normally distributed random numbers on the GPU.