%PROD Product of elements of gpuArray
%   PROD(X)
%   PROD(X,'double')
%   PROD(X,'native')
%   PROD(X,'default')
%   PROD(X,DIM)
%   PROD(X,DIM,'double')
%   PROD(X,DIM,'native')
%   PROD(X,DIM,'default')
%   PROD(...,'omitnan')
%   PROD(...,'includenan')
%   
%   The order of the products within the PROD operation is not defined, so
%   the PROD operation on a gpuArray might not return exactly the same 
%   answer as the PROD operation on the corresponding MATLAB numeric array.
%   In particular, the differences might be significant when X is a signed
%   integer type and its product is accumulated natively.
%   
%   64-bit integers are not supported with the 'native' option.
%   
%   Example:
%    
%       N = 1000;
%       D = 4 * (gpuArray.colon(1, N) .^ 2);
%       D2 = D ./ (D - 1);
%       p = prod(D2);
%       norm(p-pi/2,'inf')
%   
%    p is approximately pi/2 (by the Wallis product)
%   
%   See also PROD, GPUARRAY, GPUARRAY/COLON, GPUARRAY/ZEROS.


%   Copyright 2006-2016 The MathWorks, Inc.
