%gpuArray create data on the GPU
%   G = gpuArray( X ) copies the numeric data X to the GPU. This data can be 
%   operated on using any function that supports gpuArray objects. For information
%   on how to check GPU supported functions, see <a href="matlab:helpview('parallel-computing', 'GPU_BUILTINS')">Run MATLAB Functions on a GPU</a>.
%   You can also pass gpuArray objects to the FEVAL method of
%   a parallel.gpu.CUDAKernel object, or as inputs to a GPU MEX function.
%   
%   The MATLAB data X must be numeric (for example: single, double, int8 etc.)
%   or logical, and the GPU device must have sufficient free memory to store the
%   data.
%   
%   Use GATHER to copy gpuArray data back from the GPU to the MATLAB workspace.
%   
%   Example:
%   X = rand( 10, 'single' );
%   G = gpuArray( X );
%   isequal( gather( G ), X )  % returns true
%   classUnderlying( G )       % returns 'single'
%   G2 = G .* G                % use "times" method defined for gpuArray objects
%   
%   See also GATHER
%   


%   Copyright 2010-2018 The MathWorks, Inc.
