%GPUARRAY.NAN Build gpuArray containing Not-a-Number
%   D = GPUARRAY.NAN(N) is an N-by-N gpuArray matrix of NANs.
%   
%   D = GPUARRAY.NAN(M,N) is an M-by-N gpuArray matrix of NANs.
%   
%   D = GPUARRAY.NAN(M,N,K,...) or GPUARRAY.NAN([M,N,K,...])
%   is an M-by-N-by-K-by-... gpuArray of NANs.
%   
%   D = GPUARRAY.NAN(M,N,K,..., CLASSNAME) or 
%   GPUARRAY.NAN([M,N,K,...], CLASSNAME) is an M-by-N-by-K-by-... 
%   gpuArray of NANs of class specified by CLASSNAME.  CLASSNAME
%   must be either 'single' or 'double'.
%   
%   D = NAN(...,'like',P) for a GPUARRAY argument P returns a gpuArray of NANs of the 
%   same complexity as P. If CLASSNAME is not specified then D has the same underlying class
%   as P. P must have underlying class 'single' or 'double'.
%   
%   
%   Example:
%    
%       N = 1000;
%       % Create a 1000-by-1 gpuArray of underlying class 'single'
%       % containing the value NaN.
%       D1 = gpuArray.NAN(N, 1,'single');
%       % D2 is a 1000-by-1000 gpuArray with the same underlying class
%       D2 = NAN(N,'like',D1); 
%   
%   See also NAN, GPUARRAY, GPUARRAY/ZEROS, GPUARRAY/ONES.


%   Copyright 2008-2019 The MathWorks, Inc.
