Return a k bit shift of n- digit unsigned integers in a. A positive k leads to a left shift. A negative value to a right shift. If n is omitted it defaults to log2(bitmax)+1. n must be in range [1,log2(bitmax)+1] usually [1,33]
bitshift (eye (3), 1) 2 0 0 0 2 0 0 0 2 bitshift (10, [-2, -1, 0, 1, 2]) 2 5 10 20 40