Navigation

Operators and Keywords

Function List:

C++ API

bitset.m File Reference


Functions

endif if (nargin==2) value
endif if (isa(A,"double")) Bmax
else if (isa(A,"uint8")) Amax
 elseif (isa(A,"uint16")) Amax
 elseif (isa(A,"uint32")) Amax
 elseif (isa(A,"uint64")) Amax
 elseif (isa(A,"int8")) Amax
 elseif (isa(A,"int16")) Amax
 elseif (isa(A,"int32")) Amax
 elseif (isa(A,"int64")) Amax
else error ("invalid class %s", class(A))
 if (any(m< 1)||any(m > Amax)) error("n must be in the range [1
 if (value) X

Variables

function X
 Amax = log2 (Bmax) + 1
 _conv = @double
endif Bmax = intmax (class (A))
endif m = double (n(:))
 d
endif mask = bitshift (_conv (1), uint8 (n) - uint8 (1))

Function Documentation

elseif ( isa(A,"int64")   ) 

elseif ( isa(A,"int32")   ) 

elseif ( isa(A,"int16")   ) 

elseif ( isa(A,"int8")   ) 

elseif ( isa(A,"uint64")   ) 

elseif ( isa(A,"uint32")   ) 

elseif ( isa(A,"uint16")   ) 

else error ( "invalid class %s"  ,
class(A)   
)

if ( value   ) 

if ( any(m< 1)||any(m > Amax  ) 

else if ( isa(A,"uint8")   ) 

endif if ( isa(A,"double")   ) 

endif if ( nargin  = =2  ) 


Variable Documentation

Amax = log2 (Bmax) + 1

endif Bmax = intmax (class (A))

d

endif m = double (n(:))

endif mask = bitshift (_conv (1), uint8 (n) - uint8 (1))

X

Initial value:

 bitset (A, n, value)

  if (nargin < 2 || nargin > 3)
    print_usage ()