Message Boards Message Boards

0
|
5463 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Puzzling BitShiftRight behaviour on lists

Hi all,

The behaviour of BitShiftRight applied to a list changes when the list length exceeds 100000:

In[41]:= u0 = ConstantArray[1234, 100000];
u1 = ConstantArray[1234, 100001];

In[47]:= v0 = BitShiftRight[u0, 4];
v1 = BitShiftRight[u1, 4];

In[49]:= v0[[1 ;; 5]]

Out[49]= {77, 77, 77, 77, 77}

In[50]:= v1[[1 ;; 5]]

Out[50]= {19744, 19744, 19744, 19744, 19744}

Is this a bug? I'm using 10.0.0.0 on Linux x86-64.

POSTED BY: Berke Durak

This has been corrected in version 10.0.2.

POSTED BY: Ilian Gachevski
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract