Numpy, uint64 and Big O notation.
skip.montanaro at gmail.com
Thu Oct 9 18:31:58 CEST 2014
(For future reference, when responding to answers, it's worthwhile to
continue to cc python-list.)
On Thu, Oct 9, 2014 at 11:12 AM, Marcos Schratzenstaller <
marksabbath at gmail.com> wrote:
> The numpy has a function which manipulate 64 bits integers, but I couldn't
> find a specific method to multiplicate this kind of objects can not be
> manipulated as the same way, so if python is using the correct function
> (assuning python is detecting the object, calling the correct function) it
> is not a problem, but, where can I find this deep information?
Yes, the builtin help() function serves as reasonable documentation in this
Help on class int64 in module numpy:
class int64(signedinteger, __builtin__.int)
| 64-bit integer. Character code 'l'. Python int compatible.
| Method resolution order:
| Methods defined here:
| Methods inherited from generic:
| x.__abs__() <==> abs(x)
| x.__add__(y) <==> x+y
| x.__mod__(y) <==> x%y
| x.__mul__(y) <==> x*y
The __mul__ method implements multiplication. I don't know the specific
implementation in numpy, but it's probably little more than a thin wrapper
around x * y (with perhaps some type and overflow checking).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list