lshift(<<)
Syntax
X<<a
Arguments
X is an integral scalar/pair/vector/matrix.
a is the number of bits to shift.
Details
Shift bits to the left.
Examples
lshift(2, 10);
// output
2048
1..10 << 1;
// output
[2,4,6,8,10,12,14,16,18,20]
1..10 << 10;
// output
[1024,2048,3072,4096,5120,6144,7168,8192,9216,10240]
1:10<<10;
// output
1024 : 10240
Related operator: rshift