%BITSHIFT Bit-wise shift of gpuArray
%   
%   C = BITSHIFT(A,K) returns the value of A shifted by K bits. Shifting by K
%   is the same as multiplication by 2^K. Negative values of K are allowed
%   and this corresponds to shifting to the right, or dividing by 2^ABS(K)
%   and truncating to an integer. If the shift causes C to overflow
%   the number of bits in the unsigned integer class of A, then the
%   overflowing bits are dropped.
%   
%   At least one of inputs A or K must be an integer array. Input A does not support
%   signed integer types. 64-bit integers are not supported.
%   
%   The following syntaxes are not supported for gpuArray:
%   C = BITSHIFT(A,K,ASSUMEDTYPE)
%   
%   Example:
%   % Repeatedly shift the bits of an unsigned 32 bit value to the left
%   % until all the nonzero bits overflow. Track the progress in binary.
%    
%       a = gpuArray(intmax('uint32'));
%       disp(sprintf('Initial uint32 value %5d is %32s in binary', ...
%          gather(a),dec2bin(gather(a))))
%       for i = 1:32
%          a = bitshift(a,1);
%          disp(sprintf('Shifted uint32 value %5d is %32s in binary',...
%             gather(a),dec2bin(gather(a))))
%       end
%   
%   See also BITSHIFT, GPUARRAY.
%   


%   Copyright 2006-2013 The MathWorks, Inc.
