%POW2 Base 2 power and scale floating point number for gpuArray
%   X = POW2(Y) for each element of gpuArray Y is 2 raised to the power Y.
%   
%   X = POW2(F,E) for each element of the gpuArray F and a integer
%   gpuArray E computes gpuArray X = F .* (2 .^ E).  The 
%   result is computed quickly by simply adding E to the floating point exponent 
%   of F.  This corresponds to the ANSI C function ldexp() and the IEEE
%   floating point standard function scalbn().
%   
%   Example:
%    
%       N = 1000;
%       D = gpuArray.colon(1, N)
%       E = pow2(D)
%   
%   See also POW2, GPUARRAY, GPUARRAY/COLON, GPUARRAY/ZEROS.


%   Copyright 2006-2013 The MathWorks, Inc.
