%% Create Data on the GPU Directly
% You can create data directly on the GPU directly by using some MATLAB functions and specifying the option "gpuArray".
% Create an array of random numbers directly on the GPU.

G = rand(1,3,"gpuArray")

% Check that the output is stored on the GPU.

isgpuarray(G)

% Copyright 2021 The MathWorks, Inc.
%