Numpy, uint64 and Big O notation.
skip.montanaro at gmail.com
Thu Oct 9 17:39:56 CEST 2014
On Thu, Oct 9, 2014 at 8:08 AM, <marksabbath at gmail.com> wrote:
> I'm trying to find out the best way to multiply an uint64 (numpy). Could someone help me find the best way to achieve that and where can I find the time and space complexity in a Big O notation?
Multiply it by what? This works fine for me:
>>> import numpy
>>> x = numpy.uint64(57)
>>> xx = x * x
>>> xxx = xx * xx
>>> xxxx = xxx * xxx
>>> xxxxx = xxxx * xxxx
I assume under the covers there must be a Python long somewhere:
I think your question needs to be more concrete.
More information about the Python-list