It seems numpy's 2**np.array([64]) produces 0, which is a strange result. Why? I guess it has something to do with overflow, but feel unsure.
In [16]: 2**np.array([64])
Out[16]: array([0])
In [17]: 2**64
Out[17]: 18446744073709551616
It seems numpy's 2**np.array([64]) produces 0, which is a strange result. Why? I guess it has something to do with overflow, but feel unsure.
In [16]: 2**np.array([64])
Out[16]: array([0])
In [17]: 2**64
Out[17]: 18446744073709551616
Copyright © 2021 Jogjafile Inc.